简体   繁体   中英

How can I reduce Stanford parser time of execution?

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). However 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.)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM