public class DictionaryDetokenizer extends Object implements Detokenizer
DetokenizationDictionary
object.Detokenizer
,
DetokenizationDictionary
Detokenizer.DetokenizationOperation
Constructor and Description |
---|
DictionaryDetokenizer(DetokenizationDictionary dict) |
Modifier and Type | Method and Description |
---|---|
Detokenizer.DetokenizationOperation[] |
detokenize(String[] tokens)
Detokenize the input tokens.
|
String |
detokenize(String[] tokens,
String splitMarker)
Detokenize the input tokens into a String.
|
public DictionaryDetokenizer(DetokenizationDictionary dict)
public Detokenizer.DetokenizationOperation[] detokenize(String[] tokens)
Detokenizer
detokenize
in interface Detokenizer
tokens
- the tokens to detokenize.public String detokenize(String[] tokens, String splitMarker)
Detokenizer
detokenize
in interface Detokenizer
tokens
- the token which should be concatenatedsplitMarker
- the split marker or nullCopyright © 2020 The Apache Software Foundation. All rights reserved.