|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthultig.sumo.ChunkMark
public class ChunkMark
This class represents a phrase chunk, by storing only the chunk limits
and its POS label. A representation of this chunk is obtained through the
toString()
method, which returns a string of the form
"POS(a, b)", where "POS" is the chunk label and "a" and "b" are
respectively the left and right chunk limits, in terms word position in
the sentence (interpreted as an sequence of words).
University of Beira Interior (UBI)
Centre For Human Language Technology and Bioinformatics (HULTIG)
Field Summary | |
---|---|
protected int |
a
The chunk left limit, in terms of word position in the sentence. |
protected int |
b
The chunk right limit, in terms of word position in the sentence. |
protected ChunkTag |
chtag
The chunk's part-of-speech label. |
Constructor Summary | |
---|---|
ChunkMark(int a,
int b,
ChunkTag tag)
|
|
ChunkMark(int a,
int b,
String pos)
The constructor involves the chunk part-of-speech label and two integers representing a sentence interval, from one word (first index) to the other one (second index). |
Method Summary | |
---|---|
int |
a()
Gives the chunk left limit, in terms of sentence word position. |
int |
b()
Gives the chunk right limit, in terms of sentence word position. |
String |
POS()
Gives the chunk tag of this mark. |
boolean |
posUndefined()
Tests whether this chunk mark is labeled or not. |
void |
set(int a,
int b,
ChunkTag tag)
|
void |
set(int a,
int b,
String pos)
Sets this chunk mark, through their three parameters: the left and right sentence word positions, and the chunk part-of-speech label. |
String |
toString()
Gives the string representation of this chunk mark. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int a
protected int b
protected ChunkTag chtag
Constructor Detail |
---|
public ChunkMark(int a, int b, String pos)
a
- The position of the first word.b
- The position of the second word.pos
- The part-of-speech chunk label.public ChunkMark(int a, int b, ChunkTag tag)
Method Detail |
---|
public final void set(int a, int b, String pos)
a
- The position of the left limit.b
- The position of the right limit.pos
- char[] The part-of-speech chunk label.public final void set(int a, int b, ChunkTag tag)
public int a()
public int b()
public String POS()
public boolean posUndefined()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |