|
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 ITree<T>
An ITree is an ISentence which additionally contains
.
Default implementation: IConstituentsTree.
| Method Summary | |
|---|---|
void |
addAllWords(List<IWord<T>> otherWords)
Adds the given list of words to the list of words already contained in the ITree, as in List.addAll(java.util.Collection) |
boolean |
addStructure(IConstituent<T> c)
Adds a constituent c to the tree. |
void |
addWord(IWord<T> w)
Adds IWord w to the list of words, as in
List.add(Object) |
void |
changeSentence(List<IWord<T>> words)
Removes all words currently contained in this Tree, and adds all Word objects in words. |
void |
clear()
This procedure clears the entire tree (sentence and structure). |
ITree<T> |
cloneTree()
Returns a copy of this object. |
ISentence<T> |
createSubStructure(int begin,
int end)
|
Iterator<IConstituent<T>> |
findStructure(IConstituent<T> c)
This procedure returns an iterator to c in the tree. |
List<IConstituent<T>> |
getConstituentStructure()
Returns all Constituents stored in this Tree. |
int |
getNumberOfConstituents()
This procedure returns the number of hypotheses the tree contains |
double |
getSentenceScore()
Returns the probability of the sentence. |
void |
setSentenceScore(double score)
Sets the probability of the sentence to the given value. |
| Methods inherited from interface org.schwiebert.abl4j.data.ISentence |
|---|
addWords, buildSimilarSentencesSet, get, getCommentLine, getSequenceId, getSequenceText, getWords, indexOf, isSimilarTo, registerWordsInSentence, setCommentLine, setSequenceId, size, subList |
| Method Detail |
|---|
ITree<T> cloneTree()
boolean addStructure(IConstituent<T> c)
false will be returned.
Otherwise, c is added itself and the method returns true.
void clear()
void changeSentence(List<IWord<T>> words)
words.
words - int getNumberOfConstituents()
Iterator<IConstituent<T>> findStructure(IConstituent<T> c)
List<IConstituent<T>> getConstituentStructure()
ISentence<T> createSubStructure(int begin,
int end)
void setSentenceScore(double score)
score - double getSentenceScore()
void addWord(IWord<T> w)
IWord w to the list of words, as in
List.add(Object)
w - void addAllWords(List<IWord<T>> otherWords)
ITree, as in List.addAll(java.util.Collection)
otherWords -
|
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 | |||||||||