net.sf.extjwnl.data
Interface FileDictionaryElementFactory

All Superinterfaces:
Owned
All Known Implementing Classes:
AbstractPrincetonFileDictionaryElementFactory, PrincetonWN17FileDictionaryElementFactory

public interface FileDictionaryElementFactory
extends Owned

Factory class for creating DictionaryElements (Synsets, ExceptionIndexWords). Using a factory class rather than individual parsing methods in each class facilitates using multiple versions of WordNet, or using a proprietary data format.

Author:
John Didion , Aliaksandr Autayeu

Method Summary
 Exc createExc(POS pos, String line)
          Create an Exc from a line in an exception file.
 IndexWord createIndexWord(POS pos, String line)
          Creates an IndexWord from a line in an index file.
 Synset createSynset(POS pos, String line)
          Creates a synset from a line in a data file.
 
Methods inherited from interface net.sf.extjwnl.util.factory.Owned
getDictionary, setDictionary
 

Method Detail

createExc

Exc createExc(POS pos,
              String line)
              throws JWNLException
Create an Exc from a line in an exception file.

Parameters:
pos - - the part of speech
line - - unparsed line
Returns:
exception
Throws:
JWNLException - JWNLException

createSynset

Synset createSynset(POS pos,
                    String line)
                    throws JWNLException
Creates a synset from a line in a data file.

Parameters:
pos - - the part of speech
line - - unparsed line
Returns:
synset
Throws:
JWNLException - JWNLException

createIndexWord

IndexWord createIndexWord(POS pos,
                          String line)
                          throws JWNLException
Creates an IndexWord from a line in an index file.

Parameters:
pos - - the part of speech
line - - unparsed line
Returns:
indexword
Throws:
JWNLException - JWNLException


Copyright © 2011. All Rights Reserved.