Klasse DictionaryDetokenizer

java.lang.Object
opennlp.tools.tokenize.DictionaryDetokenizer
Alle implementierten Schnittstellen:
Detokenizer

public class DictionaryDetokenizer extends Object implements Detokenizer
A rule based detokenizer. Simple rules which indicate in which direction a token should be moved are looked up in a dictionary.
Siehe auch:
  • Konstruktordetails

  • Methodendetails

    • detokenize

      public Detokenizer.DetokenizationOperation[] detokenize(String[] tokens)
      Beschreibung aus Schnittstelle kopiert: Detokenizer
      Detokenizes the collection of tokens.
      Angegeben von:
      detokenize in Schnittstelle Detokenizer
      Parameter:
      tokens - The elements which should be detokenized.
      Gibt zurück:
      The merge operations to handle given tokens.
    • detokenize

      public String detokenize(String[] tokens, String splitMarker)
      Beschreibung aus Schnittstelle kopiert: Detokenizer
      Detokenizes the input tokens into a String. Tokens which are connected without a whitespace character in between can be separated by a given splitMarker.
      Angegeben von:
      detokenize in Schnittstelle Detokenizer
      Parameter:
      tokens - The elements which should be concatenated.
      splitMarker - The split marker or null.
      Gibt zurück:
      The concatenated tokens as a single string.