|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.uni_tuebingen.sfb.lichtenstein.binarytrees.Query
public class Query
A query contains the information to query a tree bank. It receives a formula and a tree bank and evaluates that formula on the tree bank.
| Constructor Summary | |
|---|---|
Query(Formula formula,
String treeBank,
File corporaDirectory,
File monaFileDirectory)
Initialize a Query in the given tree bank with the given formula. |
|
| Method Summary | |
|---|---|
Formula |
getFormula()
Get the formula being queried. |
List<Sentence> |
query()
Perform the query. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Query(Formula formula,
String treeBank,
File corporaDirectory,
File monaFileDirectory)
formula - The formula to look for in the tree bank.treeBank - The tree bank to query. Must not contain a file extension.corporaDirectory - The directory where preprocessed corpora can be found.monaFileDirectory - The directory where mona files and automata should be stored.| Method Detail |
|---|
public Formula getFormula()
public List<Sentence> query()
throws IOException,
ClassNotFoundException
IOException - [CAN] If the binary tree object file cannot be found, or the usual I/O trouble.
ClassNotFoundException - [CAN] If the class BinaryTree cannot be found.
InterruptedException - [CAN] If something goes wrong with the interprocess communication.
ClassNotFoundException - [CAN] If the class BinaryTree cannot be found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||