Klasse Index

java.lang.Object
opennlp.tools.dictionary.Index

public class Index extends Object
This classes indexes string lists. This makes it possible to check if a certain token is contained in at least one of the StringLists.
  • Konstruktordetails

  • Methodendetails

    • contains

      public boolean contains(String token)
      Checks if at least one StringList contains the specified token.
      Parameter:
      token - The element to check for.
      Gibt zurück:
      true if the token is contained, false otherwise.