ch.uzh.ifi.attempto.chartparser
Interface DynamicLexicon

All Known Implementing Classes:
ACEOWLLexicon

public interface DynamicLexicon

This interface represents a dynamic lexicon that can be used by the chart parser.

Author:
Tobias Kuhn

Method Summary
 java.util.Collection<LexicalRule> getLexRules(AbstractOption option)
          This method should return the lexical rules for the given abstract option.
 java.util.Collection<LexicalRule> getLexRules(java.lang.String word)
          This method should return the lexical rules with the given word (terminal category).
 

Method Detail

getLexRules

java.util.Collection<LexicalRule> getLexRules(AbstractOption option)
This method should return the lexical rules for the given abstract option. Lexical rules that do not comply with this abstract option are filtered out afterwards. This method is used for the prediction of possible next tokens. The returned collection does not need to be complete. For open word classes (e.g. string and numbers) just a subset of all possible lexicon entries can be returned.

Parameters:
option - The abstract option.
Returns:
The lexical rules for the given abstract option.

getLexRules

java.util.Collection<LexicalRule> getLexRules(java.lang.String word)
This method should return the lexical rules with the given word (terminal category). Lexical rules with a different word are filtered out afterwards.

Parameters:
word - The word.
Returns:
The lexical rules with the given word as their terminal category.


Copyright 2008-2012, AceWiki developers