|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.xerox.jxip.XipNode
com.xerox.jxip.XipLeaf
public class XipLeaf
XipLeaf Class
| Field Summary |
|---|
| Fields inherited from class com.xerox.jxip.XipNode |
|---|
daughters, dependencies, features, LEAF, mother, NODE |
| Constructor Summary | |
|---|---|
XipLeaf(java.lang.String category,
java.lang.String surface,
java.lang.String lemma,
java.lang.String initialfeatures,
long left,
long right,
long index,
long gramNodeId,
java.lang.String fileName,
long sentenceNb,
long leftChar,
long rightChar)
Constructor for the XipLeaf object |
|
| Method Summary | |
|---|---|
java.lang.String |
getInitialFeatures()
Gets the initial features |
long |
getLeftTokOffset()
Gets the left token-based offset |
java.lang.String |
getLemma()
Gets the lemma |
long |
getRightTokOffset()
Gets the right token-based offset |
java.lang.String |
getSurface()
Gets the surface |
int |
getType()
return always XipNode.LEAF |
boolean |
isLeaf()
return always true |
void |
setLeftTokOffset(long n)
Sets the left token-based offset |
void |
setRightTokOffset(long n)
Sets the right token-based offset |
java.lang.String |
toString()
return the surface |
java.lang.String |
toString(boolean withFeature,
java.lang.String tab,
boolean deeply)
return XipLeaf data as a string |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XipLeaf(java.lang.String category,
java.lang.String surface,
java.lang.String lemma,
java.lang.String initialfeatures,
long left,
long right,
long index,
long gramNodeId,
java.lang.String fileName,
long sentenceNb,
long leftChar,
long rightChar)
category - the node namesurface - surfacelemma - lemmainitialfeatures - left - offset of the beginning of the word in the sentenceright - offset of the end of the word in the sentenceindex - index used as link with c++ datagramNodeId - fileName - sentenceNb - leftChar - rightChar - | Method Detail |
|---|
public java.lang.String getLemma()
getLemma in class XipNodepublic java.lang.String getSurface()
getSurface in class XipNodepublic java.lang.String getInitialFeatures()
public long getLeftTokOffset()
getLeftTokOffset in class XipNodepublic long getRightTokOffset()
getRightTokOffset in class XipNodepublic void setLeftTokOffset(long n)
n - the left token based offsetpublic void setRightTokOffset(long n)
n - the right token based offsetpublic boolean isLeaf()
isLeaf in class XipNodepublic int getType()
getType in class XipNodepublic java.lang.String toString()
toString in class XipNode
public java.lang.String toString(boolean withFeature,
java.lang.String tab,
boolean deeply)
toString in class XipNodewithFeature - if true build the string with the XipNode featurestab - tabulationdeeply - unused
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||