leila.parsing
Class LGParse
java.lang.Object
leila.parsing.LGParse
public class LGParse
- extends java.lang.Object
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).
LGParse.java provides a wrapper for the Link Grammar-Parser. The following
parameters are required in leila.ini:
- parserCommand - the command to evoke the parser with input file %1 and output file %2.
For example, with Windows, this could look like "cmd /c c:\lg\link41b.exe < %1 > %2"
- parserFolder - the parser folder
Method Summary |
static boolean |
main(java.io.File f)
Calls the LG-Parser with a LGI-file (call by Java). |
static void |
main(java.lang.String[] argv)
Calls the LG-Parser with a file (call by User) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LGParse
public LGParse()
main
public static boolean main(java.io.File f)
throws java.lang.Exception
- Calls the LG-Parser with a LGI-file (call by Java). Returns TRUE in case of success
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] argv)
throws java.lang.Exception
- Calls the LG-Parser with a file (call by User)
- Throws:
java.lang.Exception