phrase nets
Public Member Functions
pn::parse::ParseResult::Adjacency Class Reference

List of all members.

Public Member Functions

 Adjacency ()
int wordToIndex (String word)
Word indexToWord (int id)
int[][] getAdjacencyMatrix ()
int getMaximum ()

Detailed Description

Represents an object which stores the adjacency matrix of the parse result and helpful methods.

Author:
Maria

Constructor & Destructor Documentation

pn::parse::ParseResult::Adjacency::Adjacency ( ) [inline]

Constructor


Member Function Documentation

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

Returns:
the adjacency matrix
int pn::parse::ParseResult::Adjacency::getMaximum ( ) [inline]

Returns the highest value in the adjacency matrix

Returns:
the maximum
Word pn::parse::ParseResult::Adjacency::indexToWord ( int  id) [inline]

Returns the word at the specified index. Used for lookup in adjacency matrix.

Parameters:
idindex from word
Returns:
the word
int pn::parse::ParseResult::Adjacency::wordToIndex ( String  word) [inline]

Returns the index of the specified word. Used for lookup in adjacency matrix.

Parameters:
wordthe word as String
Returns:
index from the word

The documentation for this class was generated from the following file:
 All Classes Functions Variables