Parsing Engine

danbikel.parser
Class Words

java.lang.Object
  extended bydanbikel.parser.Words

public class Words
extends Object

Provides static methods to create Word instances via an internal WordFactory instance. The static methods of this class have identical signatures to those of the WordFactory interface. The concrete type of the internal WordFactory instance is determined by the value of the Settings.wordFactoryClass setting.

See Also:
WordFactory, Settings.wordFactoryClass

Method Summary
static Word get(Sexp s)
          Returns a new Word instance constructed from the specified S-expression.
static Word get(Symbol word, Symbol tag)
          Returns a new Word instance constructed from the specified word and tag symbols.
static Word get(Symbol word, Symbol tag, Symbol features)
          Returns a new Word instance constructed from the specified word, tag and feature-vector symbols.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static Word get(Sexp s)
Returns a new Word instance constructed from the specified S-expression.

Parameters:
s - the S-expression from which to construct a new Word instance
Returns:
a new Word instance constructed from the specified S-expression
See Also:
WordFactory.get(Sexp), Word.Word(Sexp)

get

public static Word get(Symbol word,
                       Symbol tag)
Returns a new Word instance constructed from the specified word and tag symbols.

Parameters:
word - the word itself
tag - the word's part of speech
Returns:
a new Word instance constructed from the specified word and tag symbols
See Also:
WordFactory.get(Symbol,Symbol), Word.Word(Symbol,Symbol)

get

public static Word get(Symbol word,
                       Symbol tag,
                       Symbol features)
Returns a new Word instance constructed from the specified word, tag and feature-vector symbols.

Parameters:
word - the word itself
tag - the word's part of speech
features - the word's feature vector (see WordFeatures)
Returns:
a new Word instance constructed from the specified word and tag symbols
See Also:
WordFactory.get(Symbol,Symbol,Symbol), Word.Word(Symbol,Symbol,Symbol)

Parsing Engine

Author: Dan Bikel.