public class PhraseChunker extends PhraseFinder implements com.aliasi.chunk.Chunker
This class is an implementation of the LingPipe chunker which separates sentences into noun phrases and verb phrases. This chunker expects to chunk one sentence at a time.
This class is a derivation of a class from the Lingpipe software, and includes significant code segments from the original class. The Prajna Project respects all rights of the original class.
Constructor and Description |
---|
PhraseChunker()
Create a PhraseChunker using the default tokenizer factory and Part of
Speech tagger.
|
PhraseChunker(java.lang.String modelPath)
Create a PhraseChunker using the specified HMM model path.
|
Modifier and Type | Method and Description |
---|---|
com.aliasi.chunk.Chunking |
chunk(char[] charArray,
int start,
int end)
Chunk the given character array into a series of noun and verb phrases
|
com.aliasi.chunk.Chunking |
chunk(java.lang.CharSequence cSeq)
Chunk the given character sequence into a series of noun and verb
phrases
|
addEntities, findPhrases, findPhrases, findPhrases, getPosTagger, setPosTagger
public PhraseChunker()
public PhraseChunker(java.lang.String modelPath)
modelPath
- path to the Hidden Markov Model for Part of Speech
taggingpublic com.aliasi.chunk.Chunking chunk(char[] charArray, int start, int end)
chunk
in interface com.aliasi.chunk.Chunker
charArray
- the character arraystart
- the starting index in the arrayend
- the ending index in the arraypublic com.aliasi.chunk.Chunking chunk(java.lang.CharSequence cSeq)
chunk
in interface com.aliasi.chunk.Chunker
cSeq
- the character sequence