fasttext包报错
Traceback (most recent call last):
File “train.py”, line 37, in
main()
File “train.py”, line 25, in main
train_task.train()
File “train.py”, line 20, in train
ws=self.ws,lr=self.lr,word_ngrams=self.word_ngrams,dim=self.dim)
File “E:\Anaconda\Scripts\scenario_nlp\lib\site-packages\fasttext\FastText.py”, line 573, in super
vised
raise Exception("supervised
is not supported any more. Please use train_supervised
. For more
information please refer to https://fasttext.cc/blog/2019/06/25/blog-post.html#2-you-were-using-the
-unofficial-fasttext-module")
Exception: supervised
is not supported any more. Please use train_supervised
. For more informati
on please refer to https://fasttext.cc/blog/2019/06/25/blog-post.html#2-you-were-using-the-unofficia
l-fasttext-module
报错内容已经提醒你啦,请看https://fasttext.cc/blog/2019/06/25/blog-post.html#2-you-were-using-the
-unofficial-fasttext-module 这个链接,包更新之后,有些函数使用方式改变了,所以点击链接看下升级后的包同样的功能的函数变成啥样了就可以了,我这个是因为: