Interface FileDictionaryElementFactory

All Superinterfaces:
Createable
All Known Implementing Classes:
AbstractPrincetonFileDictionaryElementFactory, PrincetonWN16FileDictionaryElementFactory, PrincetonWN17FileDictionaryElementFactory

public interface FileDictionaryElementFactory extends Createable
Factory class for creating DictionaryElements (Synsets, Exceptioninvalid input: '<'/codes, and IndexWords). Using a factory class rather than individual parsing methods in each class facilitates using multiple versions of WordNet, or using a propritary data format.
  • Method Details

    • createExc

      Exc createExc(POS pos, String line)
      Create an Exc from a line in an exception file.
      Parameters:
      pos - - the part of speech
      line - - unparsed line
      Returns:
      exception
    • createSynset

      Synset createSynset(POS pos, String line)
      Creates a synset from a line in a data file.
      Parameters:
      pos - - the part of speech
      line - - unparsed line
      Returns:
      synset
    • createIndexWord

      IndexWord createIndexWord(POS pos, String line)
      Creates an IndexWord from a line in an index file.
      Parameters:
      pos - - the part of speech
      line - - unparsed line
      Returns:
      indexword