de.pado.dv
Class Context
java.lang.Object
de.pado.dv.Context
public class Context
- extends java.lang.Object
This class models a word's context as determined by the context
specification function. This is a set of anchored paths, i.e. all
paths in the context begin at this particular word. The current
implementation contains another invariant, namely that every path
conforms to a context specification (ContextSpec) path template.
|
Constructor Summary |
Context(Graph g,
ContextSpec cs,
java.lang.Integer wordIndex)
A Context is constructed by specifying a (parse) graph, a context specification, and
the index of the word in question. |
|
Method Summary |
java.util.Iterator |
iterator()
returns an iterator over all paths in the context. |
int |
size()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Context
public Context(Graph g,
ContextSpec cs,
java.lang.Integer wordIndex)
- A Context is constructed by specifying a (parse) graph, a context specification, and
the index of the word in question.
iterator
public java.util.Iterator iterator()
- returns an iterator over all paths in the context.
size
public int size()