斯坦福NLP解析器

时间:2016-02-02 17:36:03

标签: php nlp stanford-nlp pos-tagger

我从github下载了Stanford NLP解析器zip文件夹。现在我想举个例子。不知道如何在github上给出给定示例中的路径。

示例:

$pos = new \StanfordNLP\POSTagger(
  '/path/to/stanford-postagger-2014-08-27/models/english-left3words-distsim.tagger',
  '/path/to/stanford-postagger-2014-08-27/stanford-postagger.jar'
);
$result = $pos->tag(explode(' ', "What does the fox say?"));
var_dump($result);

如果有人知道PHP中的简单词性(POS)标记,那么请帮助我。

0 个答案:

没有答案