0

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

4

1 回答 1

2

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

于 2018-03-14T05:09:51.120 回答