user1925337
user1925337

Reputation: 31

Reducing the execution time of Stanford corenlp?

I am using Stanford Core NLP in my project, I am performing Parsing, Pos tagging, Ner, COREF resolution of nearly 100 sentences. But it is consuming too much of time.

How to use Threads to reduce the execution time of Stanford coreNlp?

Upvotes: 1

Views: 476

Answers (2)

mbatchkarov
mbatchkarov

Reputation: 16049

The latest version of CoreNLP takes a command-line parameter -threads N. I have successfully used it to speed up execution. I believe it processes as many as N files at a time, and therefore you will not see any speedup if your data is all in a single file.

Upvotes: 1

Ralf H
Ralf H

Reputation: 1474

Using threads only helps if you can split your workload into independent tasks. Not sure if that is possible here. If it is, check out ExecutorService.

Upvotes: 0

Related Questions