|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object leila.patterns.LinkageFile
public class LinkageFile
This class is part of LEILA (http://mpii.de/yago-naga/leila). It is licensed under the Creative Commons Attribution License (http://creativecommons.org/licenses/by/3.0) by the author Fabian M. Suchanek (http://suchanek.name).
LinkageFile.java represents an LGO-file (Link Grammar Output). This class provides an Iterator over the Linkages.
Field Summary | |
---|---|
protected Document |
document
Holds the currect document context |
protected java.io.BufferedReader |
in
Holds the Reader |
Constructor Summary | |
---|---|
LinkageFile(java.io.File inf)
Constructs a LinkageFile from a file |
Method Summary | |
---|---|
boolean |
hasNext()
TRUE if there is another Linkage |
java.util.Iterator<Linkage> |
iterator()
Returns this |
static java.io.File |
lgiFile(java.io.File f)
Returns the LGI-filename for an HTML-filename |
static java.io.File |
lgoFile(java.io.File f)
Returns the LGO-filename for an HTML-filename |
static void |
main(java.lang.String[] argv)
Test routine |
Linkage |
next()
Returns next Linkage |
void |
remove()
Does nothing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.io.BufferedReader in
protected Document document
Constructor Detail |
---|
public LinkageFile(java.io.File inf) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<Linkage>
public void remove()
remove
in interface java.util.Iterator<Linkage>
public Linkage next()
next
in interface java.util.Iterator<Linkage>
public java.util.Iterator<Linkage> iterator()
iterator
in interface java.lang.Iterable<Linkage>
public static java.io.File lgoFile(java.io.File f)
public static java.io.File lgiFile(java.io.File f)
public static void main(java.lang.String[] argv) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |