phrase nets
|
Public Member Functions | |
Adjacency () | |
int | wordToIndex (String word) |
Word | indexToWord (int id) |
int[][] | getAdjacencyMatrix () |
int | getMaximum () |
Represents an object which stores the adjacency matrix of the parse result and helpful methods.
pn::parse::ParseResult::Adjacency::Adjacency | ( | ) | [inline] |
Constructor
int [][] pn::parse::ParseResult::Adjacency::getAdjacencyMatrix | ( | ) | [inline] |
Calculates the adjacency matrix for the words in the given ParseResult. Values != 0 mean the number of outgoing edges, e.g. [x][y] = 3 means: 3 outgoing edges from x to y
int pn::parse::ParseResult::Adjacency::getMaximum | ( | ) | [inline] |
Returns the highest value in the adjacency matrix
Word pn::parse::ParseResult::Adjacency::indexToWord | ( | int | id | ) | [inline] |
Returns the word at the specified index. Used for lookup in adjacency matrix.
id | index from word |
int pn::parse::ParseResult::Adjacency::wordToIndex | ( | String | word | ) | [inline] |
Returns the index of the specified word. Used for lookup in adjacency matrix.
word | the word as String |