|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthultig.sumo.XBubble
public class XBubble
NOT YET WELL COMMENTED.
Field Summary | |
---|---|
static String |
PONTUACAO
|
POSType |
POST
|
static long |
serialVersionUID
|
Word[] |
WL
|
Word[] |
WR
|
Word[][] |
WX
|
Constructor Summary | |
---|---|
XBubble(String sfmt,
POSType pos)
Para facilitar a definição de bolhas, no código. |
|
XBubble(String sL,
String[] sX,
String sR,
POSType pos)
|
|
XBubble(Word[] wL,
Word[][] wX,
Word[] wR)
|
Method Summary | |
---|---|
boolean |
equal(XBubble b)
|
String |
getBigSegment()
|
String |
getBigX()
|
int[] |
getOrdArray(POSType pos)
|
String |
getSegment(boolean big)
|
String |
getSmallSegment()
|
String |
getSmallX()
|
String |
getX(boolean big)
|
static void |
main(String[] args)
MAIN - For testing. |
String |
neg_instance(String pos_instance,
POSType pos)
|
static int |
numVoids(Word[] W)
|
static int |
numWords(Word[] W)
|
String |
pos_instance(int size_context,
POSType pos,
int maxX)
Devolve a bolha em forma de instância. |
void |
posLabel(POSType post)
|
boolean |
print_ILP_instance(int id,
POSType pos,
PrintStream out)
Atalho, para bolhas com qualquer comprimento. |
boolean |
print_ILP_instance(int id,
POSType pos,
PrintStream out,
int xsize)
Imprime a bolha no formato adequado ao Aleph. |
void |
print_instance(int size_context,
POSType pos,
int maxX)
|
void |
print_neg_instance(String pos_instance,
POSType pos)
|
void |
print()
Output da bolha. |
boolean |
satisfy(String sconditions)
Verifica se esta bolha satisfaz uma determinada regra, gerada pelo Aleph. |
boolean |
satisfy(String side,
int k,
String value)
Particularização do método satisfy/1. |
String |
toString()
|
String |
toString(boolean with_pos_tag)
|
String[] |
toVString()
|
String[] |
toVString(boolean with_pos_tags)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long serialVersionUID
public static String PONTUACAO
public Word[] WL
public Word[] WR
public Word[][] WX
public POSType POST
Constructor Detail |
---|
public XBubble(Word[] wL, Word[][] wX, Word[] wR)
public XBubble(String sL, String[] sX, String sR, POSType pos)
public XBubble(String sfmt, POSType pos)
sformatada
- A bolha em formato de string - exemplo:"O/DT gato/NN [muito/RB gordo/JJ | _ _] comeu/VB o/DT bolo/NN" é equivalente a "O/DT gato/NN muito/RB gordo/JJ comeu/VB o/DT bolo/NN" "O/DT gato/NN ________ ________ comeu/VB o/DT bolo/NN"
Method Detail |
---|
public String[] toVString()
public String[] toVString(boolean with_pos_tags)
public void print()
public boolean print_ILP_instance(int id, POSType pos, PrintStream out)
id
- pos
- out
- public boolean print_ILP_instance(int id, POSType pos, PrintStream out, int xsize)
id
- Um identificadorPOST
- Tipos de POS defindos.out
- Referência de output.xsize
- O tamanho exacto da bolha (parte maior). Se for igual a zero então
qualquer tamanho é admitido.public String pos_instance(int size_context, POSType pos, int maxX)
1 + M + N + 2 * size_contextsendo:
M = |WX(BIG) != NULL| N = |WX(SMALL) != NULL|Exemplo:
[N(2,1), muito, RB, bonita, JJ, bonita, JJ, Ela, WP, é, VP, ...]
size_context
- POST
-
public void print_instance(int size_context, POSType pos, int maxX)
public String neg_instance(String pos_instance, POSType pos)
public void print_neg_instance(String pos_instance, POSType pos)
public int[] getOrdArray(POSType pos)
public static int numWords(Word[] W)
public static int numVoids(Word[] W)
public void posLabel(POSType post)
public String toString(boolean with_pos_tag)
public String toString()
toString
in class Object
public boolean equal(XBubble b)
public boolean satisfy(String sconditions)
"chunk(A,left,np), chunk(A,right,np), inx(A,center:x,1,state)."
sconditions
-
public boolean satisfy(String side, int k, String value)
side
- A região a testar - exemplo: left, center:x, right.k
- A posição, dentro da região (>1). Se for igual a 0 então
não existe uma restrição posicional forte, mas sim uma restrição
regional. Por exemplo uma restrição relativa a "chunk".value
- O valor a restringir, por exemplo uma palavra ou
uma etiqueta sintáctica.
public String getSegment(boolean big)
public String getBigSegment()
public String getSmallSegment()
public String getX(boolean big)
public String getBigX()
public String getSmallX()
public static void main(String[] args)
args
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |