|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectipipan.spejd.entities.Entity
public abstract class Entity
An abstract syntactic entity - with subclasses like segment, word, group or sentence beginning / end.
Field Summary | |
---|---|
static Entity[] |
ARRAY
|
static char |
GROUP
|
static char |
NOSPACE
|
static char |
NULL
|
static char |
SEGMENT
|
static char |
TOKEN
|
static char |
WORD
|
Constructor Summary | |
---|---|
Entity()
|
Method Summary | |
---|---|
void |
add(boolean delOld,
java.lang.String[] data)
Add interpretations, optionally deleting old ones. |
static java.lang.String |
concatAttr(int id,
Entity[] s)
Concatenate orth or base of a sequence of entities, adding space or not with respect to ns special entities. |
static java.lang.String |
concatAttr(int id,
Entity[] s,
int start,
int end)
Concatenate orth or base of a sequence of entities, adding space or not with respect to ns special entities. |
void |
delete(java.util.regex.Pattern pattern,
boolean neg)
Delete all interpretations matching / not matching specified pattern. |
java.lang.String |
getAttr(int id)
Get orthographic or base form of an entity. |
static java.util.Set<java.lang.String> |
getCommonValues(Entity[] match,
int[] attrIds)
Get common values of specified attributes of specified entities. |
java.lang.String |
getGroupType()
Get group type. |
java.lang.String |
getId()
|
Interpretation[] |
getInterpretationArray()
Get the set of interpretations. |
java.util.Set<Interpretation> |
getInterpretations()
Get the set of interpretations. |
Entity |
getReplacement()
|
Segment |
getSemHead()
Get semantic head of an entity. |
Segment |
getSynHead()
Get syntactic head of an entity. |
abstract void |
printXML(java.io.PrintStream out)
Prints the XML (XCES) representation of entity on the given PrintStream. |
void |
setReplacement(Entity e)
Sets replacement entity. |
void |
setRule(AbstractRule rule)
Sets rule reference for diagnostic purposes. |
java.lang.String |
toTxt()
Returns the representation of entity in the internal text format. |
static boolean |
unify(Entity[] match,
int[] attrIds)
Unify specified entities with respect to specified attributes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char NULL
public static final char TOKEN
public static final char SEGMENT
public static final char NOSPACE
public static final char WORD
public static final char GROUP
public static final Entity[] ARRAY
Constructor Detail |
---|
public Entity()
Method Detail |
---|
public static java.lang.String concatAttr(int id, Entity[] s, int start, int end)
id
- attribute to concatenate (Attribute.ORTH or Attribute.BASE)s
- an array of Entitiesstart
- start of the sequence to concatenateend
- end of the sequence to concatenatepublic static java.lang.String concatAttr(int id, Entity[] s)
id
- attribute to concatenate (Attribute.ORTH or Attribute.BASE)s
- an array of Entitiespublic static java.util.Set<java.lang.String> getCommonValues(Entity[] match, int[] attrIds)
public static boolean unify(Entity[] match, int[] attrIds)
public java.lang.String getId()
public java.lang.String getAttr(int id)
id
- Attribute.ORTH or Attribute.BASE
public Segment getSemHead()
public Segment getSynHead()
public java.lang.String getGroupType()
public java.util.Set<Interpretation> getInterpretations()
public Interpretation[] getInterpretationArray()
public void delete(java.util.regex.Pattern pattern, boolean neg)
public void add(boolean delOld, java.lang.String[] data)
public void setReplacement(Entity e)
public void setRule(AbstractRule rule)
public Entity getReplacement()
public java.lang.String toTxt()
public abstract void printXML(java.io.PrintStream out)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |