Class DictionaryDetokenizer
A rule based detokenizer. Simple rules which indicate in which direction a token should be moved are looked up in a DetokenizationDictionary object.
public class DictionaryDetokenizer : IDetokenizer
- Inheritance
-
DictionaryDetokenizer
- Implements
- Inherited Members
Remarks
Constructors
DictionaryDetokenizer(DetokenizationDictionary)
A rule based detokenizer. Simple rules which indicate in which direction a token should be moved are looked up in a DetokenizationDictionary object.
public DictionaryDetokenizer(DetokenizationDictionary dict)
Parameters
Remarks
Methods
Detokenize(string[])
Detokenize the input tokens.
public virtual DetokenizationOperation[] Detokenize(string[] tokens)
Parameters
tokensstring[]the tokens to detokenize.
Returns
- DetokenizationOperation[]
the merge operations to detokenize the input tokens.
Detokenize(string[], string?)
Detokenize the input tokens into a String. Tokens which are connected without a space inbetween can be separated by a split marker.
public virtual string Detokenize(string[] tokens, string? splitMarker)
Parameters
Returns
- string
the concatenated tokens