public class MultiWordMatcher extends Object
| Constructor and Description |
|---|
MultiWordMatcher(Properties props)
Construct a multiword matcher with a dictionary for a given language.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxTokenCount()
Get the key,value size of the dictionary.
|
String[] |
getTokensWithMultiWords(String[] tokens)
Get input text and join the multiwords found in the dictionary object.
|
opennlp.tools.util.Span[] |
multiWordsToSpans(String[] tokens)
Detects multiword expressions ignoring case.
|
public MultiWordMatcher(Properties props) throws IOException
props - the properties optionsIOException - throw exception is files does not existpublic final String[] getTokensWithMultiWords(String[] tokens)
tokens - the input textpublic final opennlp.tools.util.Span[] multiWordsToSpans(String[] tokens)
tokens - the tokenized sentencepublic int getMaxTokenCount()
Copyright © 2015 IXA pipes. All rights reserved.