|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umn.cs.nlp.mt.huangchiang2005.Vertex<Edge,Parse>
public class Vertex<Edge extends Hyperarc,Parse extends Derivation>
Field Summary | |
---|---|
protected List<Parse> |
derivations
|
protected List<Edge> |
incomingHyperarcs
|
Constructor Summary | |
---|---|
|
Vertex()
Creates a Vertex with no incoming Hyperarcs. |
protected |
Vertex(List<Edge> incomingHyperarcs)
Creates a Vertex with an existing list of incoming Hyperarcs. |
Method Summary | ||
---|---|---|
boolean |
add(Edge hyperarc)
Add an incoming Hyperarc to this Vertex. |
|
List<Edge> |
backwardStar()
Get the list of incoming Hyperarcs. |
|
List<Parse> |
getBestDerivations(int n)
Gets a List of the n best Derivations of this Vertex. |
|
Parse |
getDerivation(int n)
Get the nth best Derivation from this Vertex. |
|
List<Parse> |
getDerivations()
Gets a List of all Derivations of this Vertex. |
|
int |
inDegree()
Get the number of incoming Hyperarcs. |
|
void |
merge(int k,
List<Parse> list)
|
|
protected static
|
merge(int k,
List<Parse> listA,
List<Parse> listB)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final List<Edge extends Hyperarc> incomingHyperarcs
protected List<Parse extends Derivation> derivations
Constructor Detail |
---|
public Vertex()
protected Vertex(List<Edge> incomingHyperarcs)
incomingHyperarcs
- The list of incoming Hyperarcs for the VertexMethod Detail |
---|
public List<Edge> backwardStar()
public int inDegree()
public boolean add(Edge hyperarc)
hyperarc
- The incoming Hyperarcpublic Parse getDerivation(int n)
n
- Indicates which Derivation to get
public List<Parse> getBestDerivations(int n)
n
- Indicates how many Derivations to get
merge
has been previously called, returns the n best Derivations of this Vertex,
else returns an empty Listpublic List<Parse> getDerivations()
merge
has been previously called, returns all Derivations of this Vertex,
else returns an empty Listpublic void merge(int k, List<Parse> list)
protected static <Parse extends Derivation> List<Parse> merge(int k, List<Parse> listA, List<Parse> listB)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |