I run OpenNLP's SentenceDetector command line too on the example text given
at
http://incubator.apache.org/opennlp/documentation/manual/opennlp.html#tools.sentdetect.detection

But, it doesnt give the correct output mentioned at that same link, instead
it gives this output:
Pierre Vinken, 61 years old, will join the board as a nonexecutive director
Nov. 29.
Mr. Vinken is chairman of Elsevier N.V.,
the Dutch publishing group.
Rudolph Agnew, 55 years old and former chairman of Consolidated Gold Fields
PLC,
was named a director of this British industrial conglomerate.

It created 5 sentences instead of 3.

I tried using the Java API of SentenceDetector, and that too gives incorrect
output.

A friend of mine ran the command line tool and used the Java API in Windows,
and it worked for him.
Hence, I am guessing this could be a Linux specific problem.

Thanks
Chandra

Reply via email to