tata1661 / FSL-Mate

FSL-Mate: A collection of resources for few-shot learning (FSL).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AttributeError: module 'paddlefsl.backbones' has no attribute 'GloVeRC'

qaolylucky opened this issue · comments

如题.运行examples/relation_classification下两个文件,报错AttributeError: module 'paddlefsl.backbones' has no attribute 'GloVeRC'

如题.运行examples/relation_classification下两个文件,报错AttributeError: module 'paddlefsl.backbones' has no attribute 'GloVeRC'

Sorry, we didn't modify the sample and related comments after renewing the code of word vector. Here are the relevant code. The word vectors including glove, fasttext and word2vec are integrated into the same class RCInitVector. The specific usage should be changed as follows:

init_vector = backbones.RCInitVector(corpus='glove-wiki', embedding_dim=embedding_dim)

(The specific location is on line 15 of the two files.)
The corpus parameter can also be changed to other word vectors involved in the code. The first call will automatically download the word vector file online.

We will modify the relevant samples and comments as soon as possible.

The bug is now fixed. Thanks.