【问题标题】:Is there method .predict in official python bindings for fastTextfastText 的官方 python 绑定中是否有方法 .predict
【发布时间】:2018-03-13 21:34:07
【问题描述】:

我知道在 python(fasttext, pyfasttext) 中存在与 .predict 方法的非官方绑定,但它们不适用于在官方 FastText bash 工具上训练的最新模型,或者没有所有选项。官方 python 绑定只描述了 load_model(path) 和 tokenize(text) 方法,这听起来很奇怪,因为你不能做任何预测。我在这里错过了什么吗?

【问题讨论】:

    标签: machine-learning nlp text-classification fasttext


    【解决方案1】:

    我使用根据这个链接https://github.com/facebookresearch/fastText/blob/master/README.md#building-fasttext-for-python构建和安装的Python包。我认为是官方的。 通过 load_model 加载的模型对象具有请求的 predict 方法。

    【讨论】:

    • 对,这一切都在代码中,但不是在有些模糊的文档中
    猜你喜欢
    • 2021-11-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多