如何使用http协议运行stanford pos tagger

oyxsuwqo  于 2021-07-06  发布在  Java
关注(0)|答案(0)|浏览(216)

我试图运行斯坦福pos标签使用http协议,我想它初始化一次,而不是每次初始化标签,如果我需要他们这是慢得多。我正在使用这个库使用php与tagger交互https://github.com/patrickschur/stanford-nlp-tagger 但是,这个库很慢,因为每次我需要标记句子时它都在初始化。
所以我想使用客户机和服务器的基础模型,它会更快。
我在这里找到了一个解决方案,即如何使用stanford nlp tagger和nltk提高速度
但我被困在

wget http://localhost:2020/?die welt ist schön

我不认为url是正确的执行方式,这是我在执行wget时得到的

--2020-11-24 21:56:34--  http://localhost:2020/?die
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:2020... connected.
HTTP request sent, awaiting response... 200 No headers, assuming HTTP/0.9
Length: unspecified
Saving to: ‘index.html?die’

index.html?die                               [ <=>                                                                            ]      47  --.-KB/s    in 0s

2020-11-24 21:56:34 (6.23 MB/s) - ‘index.html?die’ saved [47]

--2020-11-24 21:56:34--  http://welt/
Resolving welt (welt)... xxx.x.xxx.138
Connecting to welt (welt)|xxx.x.xx.138|:80... connected.
HTTP request sent, awaiting response... 302 Found

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题