Schnittstelle POSContextGenerator

Alle Superschnittstellen:
BeamSearchContextGenerator<String>
Alle bekannten Implementierungsklassen:
ConfigurablePOSContextGenerator, DefaultPOSContextGenerator

public interface POSContextGenerator extends BeamSearchContextGenerator<String>
Interface for a BeamSearchContextGenerator used in POS tagging.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    getContext(int index, String[] tokens, String[] prevTags, Object[] additionalContext)
    Returns the context for making a postag decision at the specified token index given the specified tokens and previous tags.
  • Methodendetails

    • getContext

      String[] getContext(int index, String[] tokens, String[] prevTags, Object[] additionalContext)
      Returns the context for making a postag decision at the specified token index given the specified tokens and previous tags.
      Angegeben von:
      getContext in Schnittstelle BeamSearchContextGenerator<String>
      Parameter:
      index - The index of the token for which the context is provided.
      tokens - The token sequence representing a sentence.
      prevTags - The tags assigned to the previous words in the sentence.
      additionalContext - The context for additional information.
      Gibt zurück:
      The context for making a postag decision at the specified token index given the specified tokens and previous tags.