public class BasicChunk extends Object
| Modifier and Type | Field and Description |
|---|---|
static String[] |
appoList |
static Set<String> |
appoMap |
static String[] |
ccList |
static Set<String> |
ccMap |
boolean |
extracted |
boolean |
init |
boolean |
is_merged |
String |
type |
| Constructor and Description |
|---|
BasicChunk() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChunk(BasicChunk bc) |
void |
addChunk(Chunk c) |
void |
addPro(Word pro) |
void |
addTrg(Word trg) |
boolean |
belongTO(Word trg,
Word pr) |
boolean |
belongTO(Word trg,
Word pr,
Word pr2) |
boolean |
containsKey(Word key) |
int |
countChunks(Word w1,
Word w2) |
void |
findCoordinator(List<Chunk> ls) |
String |
findTrigger(Word tg,
Word pro) |
String |
getBy_Through(Word tg,
Word pr,
String[] tokens) |
Chunk |
getChunk(int pos) |
int |
getChunkPos(int pos) |
String |
getPrep(Word tg,
Word pr) |
List<Word> |
getPro() |
boolean |
inChunk(Word trg,
Word pro) |
boolean |
inChunkTG(Word trg1,
Word trg2)
Two tg in the same chunk ; for learning rule only
|
boolean |
inChunkTrg(Word tg,
String[] tokens)
Check whether a given trigger is in_chunk form
|
boolean |
isEmpty()
Check whether this basic chunk is empty.
|
boolean |
isQualify() |
boolean |
isSameChunk(Word tg,
Word pr)
Check whether in the same chunk but not in_chunk form
|
boolean |
isSameRole(Word tg1,
Word tg2,
String[] tokens)
Check whether two trigger has the same role (i.e have the same arguments)
|
void |
mergeNP() |
void |
printChunk() |
int |
proCount() |
void |
removeTrg(Word tg) |
String |
toString()
Operation: 1.
|
int |
trgCount() |
public String type
public boolean extracted
public boolean is_merged
public boolean init
public static final String[] ccList
public static final String[] appoList
public boolean isEmpty()
public void addChunk(BasicChunk bc)
public void removeTrg(Word tg)
public boolean inChunkTrg(Word tg, String[] tokens)
tg - public boolean isSameRole(Word tg1, Word tg2, String[] tokens)
tg1 - tg2 - tokens - public boolean isSameChunk(Word tg, Word pr)
tg - pr - public void mergeNP()
public int proCount()
public int trgCount()
public boolean containsKey(Word key)
public Chunk getChunk(int pos)
public boolean isQualify()
public int getChunkPos(int pos)
public boolean inChunkTG(Word trg1, Word trg2)
trg1 - trg2 - public void addChunk(Chunk c)
public void addPro(Word pro)
public void addTrg(Word trg)
public void printChunk()
public String toString()
Copyright © 2016 JULIE Lab, Germany. All rights reserved.