|
ABL4J (Alignment Based Learning for Java) - 0.9.7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITreeBank<T>
An ITreebank is a sequence of ITree objects.
Default implementation: TreeBank.
| Method Summary | |
|---|---|
void |
addAllTrees(Collection<ITree<T>> trees)
Adds the collection trees to the treebank, as in
List.addAll(Collection) |
void |
addComment(String comment)
Adds a comment to this treebank. |
void |
addTree(ITree<T> tree)
Adds ITree tree to this
treebank, as in List.add(Object) |
void |
clear()
Removes all ITrees in this treebank, as in
List.clear() |
void |
doReverse()
TODO: This method is not tested yet, as it's only used by suffix tree alignment. |
ITree<T> |
get(int i)
Returns the ITree at index i, as in List.get(int) |
List<String> |
getComments()
Returns all comments on this treebank. |
int |
getCurrentIndex()
Returns the current index in the Treebank. |
int |
getNumberOfConstituents()
Returns the number of IConstituents stored in
all trees in this treebank. |
Collection<? extends ITree<T>> |
getTrees()
Returns all ITrees stored in the treebank. |
void |
incrementCurrentIndex()
Increases the current index. |
int |
indexOf(ITree<T> tree)
Returns the index of ITree tree. |
boolean |
isExhaustive()
Returns the exhaustive flag of this Treebank. |
void |
setCurrentIndex(int current)
Sets the current index to current. |
void |
setExhaustive(boolean v)
This procedure sets whether or not to preserve memory by aligning all possible sentence pairs. |
int |
size()
Returns the number of ITree-objects stored
in this treebank. |
| Method Detail |
|---|
void setExhaustive(boolean v)
boolean isExhaustive()
void doReverse()
int getCurrentIndex()
void incrementCurrentIndex()
void setCurrentIndex(int current)
currentthe - current indexint getNumberOfConstituents()
IConstituents stored in
all trees in this treebank.
int size()
ITree-objects stored
in this treebank.
ITreesITree<T> get(int i)
ITree at index i, as in List.get(int)
i - the index
ITree at index ivoid addComment(String comment)
the - commentList<String> getComments()
void addTree(ITree<T> tree)
ITree tree to this
treebank, as in List.add(Object)
tree - the tree to addint indexOf(ITree<T> tree)
ITree tree. Returns
-1 if the tree is not contained in the treebank.
tree - the tree
List.indexOf(Object)void clear()
ITrees in this treebank, as in
List.clear()
Collection<? extends ITree<T>> getTrees()
ITrees stored in the treebank.
ITree-objectsvoid addAllTrees(Collection<ITree<T>> trees)
trees to the treebank, as in
List.addAll(Collection)
trees - the trees to add.
|
ABL4J (Alignment Based Learning for Java) - 0.9.7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||