I am using opennlp opennlp.tools.chunker.ChunkerME implementation for finding chunks. In this class i am calling chunkAsSpans(..) method which returns Span[].
So, this Span instance has getType() getter method which is returning types like
NP, VP etc.
Here i am wondering what type means for Span? Is it the POS?
NP stands for a noun phrase, and VP stands for a verb phrase.
If you have a look at the Chunker Training help page, you will see the following:
The training data must be converted to the OpenNLP chunker training format, that is based on CoNLL2000: The train data consist of three columns separated by spaces. Each word has been put on a separate line and there is an empty line after each sentence. The first column contains the current word, the second its part-of-speech tag and the third its chunk tag. The chunk tags contain the name of the chunk type, for example I-NP for noun phrase words and I-VP for verb phrase words.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With