Package opennlp.tools.tokenize
Class DetokenizationDictionary
- java.lang.Object
-
- opennlp.tools.tokenize.DetokenizationDictionary
-
public class DetokenizationDictionary extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DetokenizationDictionary.Operation
-
Constructor Summary
Constructors Constructor Description DetokenizationDictionary(java.io.File file)
DetokenizationDictionary(java.io.InputStream in)
DetokenizationDictionary(java.lang.String[] tokens, DetokenizationDictionary.Operation[] operations)
Initializes the current instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
serialize(java.io.OutputStream out)
-
-
-
Constructor Detail
-
DetokenizationDictionary
public DetokenizationDictionary(java.lang.String[] tokens, DetokenizationDictionary.Operation[] operations)
Initializes the current instance.- Parameters:
tokens
- an array of tokens that should be detokenized according to an operationoperations
- an array of operations which specifies which operation should be used for the provided tokens
-
DetokenizationDictionary
public DetokenizationDictionary(java.io.InputStream in) throws java.io.IOException
- Throws:
java.io.IOException
-
DetokenizationDictionary
public DetokenizationDictionary(java.io.File file) throws java.io.IOException
- Throws:
java.io.IOException
-
-