开发者

How can I reduce Stanford parser time of execution?

开发者 https://www.devze.com 2023-03-08 01:52 出处:网络
Good Morning, I am using Stanford part of speech for my application, and I need to parse many text files (can go to 20 files). Howe开发者_运维问答ver I noticed that stanford takes a lot of time (some

Good Morning,

I am using Stanford part of speech for my application, and I need to parse many text files (can go to 20 files). Howe开发者_运维问答ver I noticed that stanford takes a lot of time (sometimes 30min or more), the problem is that Stanford automatically builds the syntax tree, even when I don't need it. Have anyone face this problem before? what can I do to reduce the parsing time of stanford?

Any help is welcome, Regards.


If you just want part of speech, not parse trees, you should run a (sequence model) part of speech tagger, such as the Stanford POS Tagger, which is orders of magnitude faster). See the Stanford Parser FAQ. (If you want fast tagging, use the left3words-wsj-0-18.tagger model of the Stanford POS Tagger.)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号