|
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 | |||||||||
T - public interface IWordMapping<T>
Different implementations of IWordMapping allow users to align
different kind of data. The default word mapping used in ABL4J, WordMapping,
is used to map any Object to an int value, so you'll probably only have to provide
WordMapping with a custom Comparator to make ABL4J aware of a new
class.
| Method Summary | |
|---|---|
void |
addIndexToSentence(int wordId,
int sentenceId)
This method is called to register the use of the word wordId in sentence sentenceId. |
Vector<Integer> |
getSentencesOfIndex(int wordId)
Returns a list of all sequences which contain the word with id wordId. |
T |
getWord(int wordId)
Returns the word with id wordId |
int |
getWordIndexByObject(T data)
Returns the word id of data |
| Method Detail |
|---|
void addIndexToSentence(int wordId,
int sentenceId)
wordId in sentence sentenceId.
Vector<Integer> getSentencesOfIndex(int wordId)
wordId.
wordId -
T getWord(int wordId)
wordId
wordId -
int getWordIndexByObject(T data)
data
data -
|
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 | |||||||||