edu.stanford.nlp.framenet
Class FN2Reader
java.lang.Object
|
+--edu.stanford.nlp.framenet.FN2Reader
- public class FN2Reader
- extends Object
Uses DOM libraries to read in a lexical unit xml file from FrameNet 2.
Warnings:
--There are several places where messages are printed out where exceptions
should really be thrown
- Author:
- Cindi Thompson
Constructor Summary |
FN2Reader(File in)
would really want this to take a Reader, but DocumentBuilder parse
needs a InputStream or File |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FN2Reader
public FN2Reader(File in)
- would really want this to take a Reader, but DocumentBuilder parse
needs a InputStream or File
readSent
public FNSentence readSent()
- reads a FNSentence from the xml file.
Really a misnomer, the FNSentbank has been "read", this just gets one
LEFT OFF: this basically works, now
fix up main routine to
-echo the data there
-allow both single xml files and a directory
close
public void close()
main
public static void main(String[] args)