【问题标题】:Not able to load input data for fasttext无法为 fasttext 加载输入数据
【发布时间】:2019-03-04 10:10:30
【问题描述】:

我的 input.txt 包含以下内容:

__label__SPAM buy our products
__label__HAM Please send me the last business forecast
__label__SPAM buy viagra
__label__HAM important meeting at 10:00AM

但是运行命令后:

./fasttext skipgram -input ~/PycharmProjects/Pcat/input.txt -output modelskipgram

我得到的输出为:

Read 0M words
Number of words:  0
Number of labels: 2
Progress: 100.0% words/sec/thread:     339 lr:  0.000000 loss:  0.000000 ETA:   0h 0m

我做错了什么?

【问题讨论】:

    标签: python machine-learning nlp fasttext


    【解决方案1】:

    我不确定您是否可以使用有监督的 skipgram,因为 skipgram 本身就是一个无监督模型。试试这个。

    ./fasttext supervised -input ~/PycharmProjects/Pcat/input.txt -output model
    

    【讨论】:

    猜你喜欢
    • 2018-11-27
    • 1970-01-01
    • 2021-09-20
    • 1970-01-01
    • 1970-01-01
    • 2014-11-25
    • 1970-01-01
    • 2018-10-14
    • 1970-01-01
    相关资源
    最近更新 更多