public class MultiWordMatcher extends Object
| Constructor and Description |
|---|
MultiWordMatcher(InputStream dictInputStream)
Construct a multiword dictionary matcher.
|
| 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.
|
Span[] |
multiWordsToSpans(String[] tokens)
Detects multiword expressions ignoring case.
|
public MultiWordMatcher(InputStream dictInputStream) throws IOException
dictInputStream - the dictionaryIOException - if io problemspublic final String[] getTokensWithMultiWords(String[] tokens)
tokens - the input textpublic final Span[] multiWordsToSpans(String[] tokens)
tokens - the tokenized sentencepublic int getMaxTokenCount()
Copyright © 2016 IXA pipes. All rights reserved.