Schnittstelle MutableTagDictionary

Alle Superschnittstellen:
TagDictionary
Alle bekannten Implementierungsklassen:
POSDictionary

public interface MutableTagDictionary extends TagDictionary
Interface that allows TagDictionary entries to be added and removed. This can be used to induce the dictionary from training data.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    put(String word, String... tags)
    Associates the specified tags with the specified word.

    Von Schnittstelle geerbte Methoden opennlp.tools.postag.TagDictionary

    getTags, isCaseSensitive
  • Methodendetails

    • put

      String[] put(String word, String... tags)
      Associates the specified tags with the specified word. If the dictionary previously contained keys for the word, the old tags are replaced by the specified tags.
      Parameter:
      word - word with which the specified tags is to be associated
      tags - tags to be associated with the specified word
      Gibt zurück:
      the previous tags associated with the word, or null if there was no mapping for word.