ca.uottawa.balie
Class LexiconOnDisk

java.lang.Object
  extended byca.uottawa.balie.LexiconOnDisk

public class LexiconOnDisk
extends java.lang.Object

Author:
nadeaud

Constructor Summary
LexiconOnDisk()
          Read lexicons that reside in text files.
 
Method Summary
 int GetEntityType(java.lang.String pi_Word)
          Get the entity type for this word.
 boolean IsEntity(java.lang.String pi_Word)
          Check if a given word is listed in a lexicon
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LexiconOnDisk

public LexiconOnDisk()
Read lexicons that reside in text files.

Method Detail

IsEntity

public boolean IsEntity(java.lang.String pi_Word)
Check if a given word is listed in a lexicon

Parameters:
pi_Word - a word (can be a phase)
Returns:
True if the word belogns to one or more lexicon

GetEntityType

public int GetEntityType(java.lang.String pi_Word)
Get the entity type for this word. Entity type is a bit flag made of one or many entity types (see TokenConsts for type list)

Parameters:
pi_Word -
Returns:
the type(s)
See Also:
TokenConsts