|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpt.tumba.cage.NamedEntity
public class NamedEntity
A Named Entity recognized in the text.
| Constructor Summary | |
|---|---|
NamedEntity()
Constructor for an uninitialized NamedEntity. |
|
NamedEntity(java.lang.String qualifyer,
java.lang.String match,
java.lang.String tag,
java.lang.String type)
Constructor for NamedEntity. |
|
NamedEntity(java.lang.String qualifyer,
java.lang.String match,
java.lang.String tag,
java.lang.String type,
int flags)
Constructor for NamedEntity. |
|
| Method Summary | |
|---|---|
static boolean |
equalTypes(java.lang.String type1,
java.lang.String type2)
Checks if two given strings with type information contain exactly the same types. |
int |
getHTMLFlags()
Returns the flags for the HTML markup contexts where the entity was found. |
java.lang.String |
getMatch()
Returns the part of the named entity that matched the lexicon. |
java.lang.String |
getNamedEntity()
Returns a String with the named entity. |
java.lang.String |
getQualifyer()
Returns the qualifyer for the named entity. |
java.lang.String[] |
getSubType()
Returns the subtypes associated with the named entity. |
java.lang.String |
getTag()
Returns the main cathegory associated with the named entity (i.e. |
java.lang.String[] |
getType()
Returns the main types associated with the named entity. |
static boolean |
isMoreSpecific(java.lang.String type1,
java.lang.String type2)
Checks if one string contains more specific type information than another. |
boolean |
isSubType(java.lang.String st)
Checks is this named entity belongs to a given subtype. |
boolean |
isType(java.lang.String t)
Checks is this named entity belongs to a given type. |
static java.lang.String[] |
parseType(java.lang.String type)
Parses a String with type information into an array of Strings with all the types. |
void |
setHTMLFlags(int flags)
Sets the flags for the HTML markup contexts where the entity was found. |
java.lang.String |
setMatch(java.lang.String match)
Sets the part of the named entity that matched the lexicon. |
java.lang.String |
setNamedEntity(java.lang.String namedEntity,
java.lang.String qualifyer)
Sets the named entity. |
java.lang.String |
setQualifyer(java.lang.String qualifyer)
Sets the qualifyer for this named entity. |
void |
setSubType(java.lang.String[] subType)
Sets the subtypes associated with the named entity. |
void |
setTag(java.lang.String tag)
Sets the main cathegory associated with the named entity (i.e. |
void |
setType(java.lang.String[] type)
Sets the main types associated with the named entity. |
static boolean |
shareOneType(java.lang.String type1,
java.lang.String type2)
Checks if two strings with type information contain at least one type in common. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NamedEntity()
NamedEntity.
public NamedEntity(java.lang.String qualifyer,
java.lang.String match,
java.lang.String tag,
java.lang.String type)
NamedEntity.
qualifyer - The qualifyer for the named entity.match - The part of the named entity that matched the lexicon.tag - The main cathegory associated with the named entity.type - The types and subtypes associated with the named entity.
public NamedEntity(java.lang.String qualifyer,
java.lang.String match,
java.lang.String tag,
java.lang.String type,
int flags)
NamedEntity.
qualifyer - The qualifyer for the named entity.match - The part of the named entity that matched the lexicon.tag - The main cathegory associated with the named entity.type - The types and subtypes associated with the named entity.flags - Flags for the HTML markup contexts where the entity was found.| Method Detail |
|---|
public java.lang.String getNamedEntity()
public java.lang.String getMatch()
public java.lang.String getQualifyer()
public java.lang.String getTag()
public java.lang.String[] getType()
public java.lang.String[] getSubType()
public int getHTMLFlags()
public void setHTMLFlags(int flags)
flags - The flags for the HTML markup contexts where the entity was found.public boolean isType(java.lang.String t)
t - The type to check.
public boolean isSubType(java.lang.String st)
st - The subtype to check.
public java.lang.String setNamedEntity(java.lang.String namedEntity,
java.lang.String qualifyer)
namedEntity - The named entity recognized in the text.qualifyer - The qualifyer for this named entity.
public java.lang.String setMatch(java.lang.String match)
match - The part of the named entity that matched the lexicon.
public java.lang.String setQualifyer(java.lang.String qualifyer)
qualifyer - The qualifyer for this named entity.
public void setTag(java.lang.String tag)
tag - The main cathegory associated with the named entity (i.e. name,organization,place or misc).public void setType(java.lang.String[] type)
type - The main types associated with the named entity.public void setSubType(java.lang.String[] subType)
subType - The subtypes associated with the named entity.public static java.lang.String[] parseType(java.lang.String type)
type - A String with type information.
public static boolean equalTypes(java.lang.String type1,
java.lang.String type2)
type1 - A string with type information.type2 - Another string with type information.
public static boolean isMoreSpecific(java.lang.String type1,
java.lang.String type2)
type1 - A string with type information.type2 - Another string with type information.
public static boolean shareOneType(java.lang.String type1,
java.lang.String type2)
type1 - A string with type information.type2 - Another string with type information.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||