|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.uottawa.balie.NamedEntityAlias
public class NamedEntityAlias
NE alias object is a set of labels that represent the same entity
Constructor Summary | |
---|---|
NamedEntityAlias(java.util.ArrayList<java.lang.String> pi_alBow,
int pi_EntityIndex,
int pi_NETagSetSize)
A concept (alias) that represents one or many named entity |
Method Summary | |
---|---|
void |
Add(java.util.ArrayList<java.lang.String> pi_alBow,
int pi_Index)
Add an entity bag-of-word to this alias |
java.util.ArrayList<java.lang.String> |
Bow()
Get entire BOW for this alias |
NamedEntityType |
DominantType()
|
java.util.ArrayList<java.lang.Integer> |
Entities()
Get list of indexes of entities |
void |
Merge(NamedEntityAlias pi_Alias)
Merge aliases |
void |
SetDominantType(NamedEntityType pi_NE)
Set the dominant type for this entity the dominant type is the preferred type to be applied to all elements of the alias |
boolean |
SignificantOverlap(java.util.ArrayList<java.lang.String> pi_Bow)
Check if this alias and a bag-of-word have a significant overlap (at least half of words overlap) |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NamedEntityAlias(java.util.ArrayList<java.lang.String> pi_alBow, int pi_EntityIndex, int pi_NETagSetSize)
pi_alBow
- words that belongs to this aliaspi_EntityIndex
- index of an entity (at least this entity is required to create an alias)Method Detail |
---|
public void Add(java.util.ArrayList<java.lang.String> pi_alBow, int pi_Index)
pi_alBow
- Words of this entitypi_Index
- index of this entitypublic void Merge(NamedEntityAlias pi_Alias)
pi_Alias
- alias to mege withpublic boolean SignificantOverlap(java.util.ArrayList<java.lang.String> pi_Bow)
pi_Bow
- bow to check
public java.util.ArrayList<java.lang.Integer> Entities()
public java.util.ArrayList<java.lang.String> Bow()
public java.lang.String toString()
toString
in class java.lang.Object
public void SetDominantType(NamedEntityType pi_NE)
pi_NE
- a type (must contains ionly one primitive type)public NamedEntityType DominantType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |