【发布时间】:2019-05-27 05:58:03
【问题描述】:
AllenNLP 有一个预测函数,它接收一个 JSON 文件,然后输出一个 JSON 文件。从文档中可以@overrides predictor.load_line 并写入一个函数来接收一个文本文件。
你会如何编写这个函数?以及如何实现该功能(即作为模块导入)?
AllenNLP load_line API:https://allenai.github.io/allennlp-docs/api/allennlp.predictors.html?highlight=sentencetaggerpredictor#allennlp.predictors.predictor.Predictor
我正在学习这里的教程: https://github.com/allenai/allennlp/blob/master/tutorials/tagger/README.md
【问题讨论】:
标签: python natural-language-processing allennlp