List of all members.
Detailed Description
Constructor & Destructor Documentation
pn::parse::ParseResult::ParseResult |
( |
Iterable< String > |
linkWords | ) |
[inline] |
Ctor.
- Parameters:
-
linkWords | All link words. Must not be null |
Member Function Documentation
void pn::parse::ParseResult::add |
( |
String |
a, |
|
|
String |
linkWord, |
|
|
String |
b |
|
) |
| [inline] |
Adds a connection (A x B).
- Parameters:
-
a | A. Must not be null |
linkWord | The link word. Must be known to this object (see ctor) |
b | B. Must not be null |
ParseResult pn::parse::ParseResult::filterBlack |
( |
Collection< String > |
filter | ) |
[inline] |
Returns a new parse result, removing all prases 'A x B' where A, B or both A and B are in the specified blacklist. This result remains unchanged.
- Parameters:
-
filter | The words to remove. Must not be null |
- Returns:
- The filtered result
Returns a new parse result with all words removed that are known stopwords in the current language (see getLanguage()). This result remains unchanged.
- Returns:
- The filtered result
- Exceptions:
-
PNException | If the language is not specified or an error occures while loading the words |
Returns a new parse result with all words removed that are known stopwords in the specified language. This result remains unchanged.
- Returns:
- The filtered result
- Exceptions:
-
ParseResult pn::parse::ParseResult::filterTop |
( |
int |
num | ) |
[inline] |
Returns a a new parse result containing only prases 'A x B' where A, B or both A and B are amongst the num most frequently occuring words. This result remains unchanged.
- Parameters:
-
num | Number of most frequent words to process |
- Returns:
- The filtered result
ParseResult pn::parse::ParseResult::filterWhite |
( |
Collection< String > |
filter | ) |
[inline] |
Returns a new parse result, keeping only phrases 'A x B' where A, B or both A and B are in the specified whitelist. This result remains unchanged.
- Parameters:
-
filter | The words to keep. Must not be null |
- Returns:
- The filtered result
Adjacency pn::parse::ParseResult::getAdjacencyObj |
( |
| ) |
[inline] |
String pn::parse::ParseResult::getLanguage |
( |
| ) |
[inline] |
- Returns:
- The language of the words or null if unset
Map<String, Link> pn::parse::ParseResult::getLinks |
( |
| ) |
[inline] |
Returns a map that contains all links (A x B).
- Returns:
- The links
int pn::parse::ParseResult::getMaxWordCount |
( |
| ) |
[inline] |
Searches for the word with the maximal occurance in the parse result and returns the number of occurrences.
- Returns:
- the number of maximal occurrences
int pn::parse::ParseResult::getMinWordCount |
( |
| ) |
[inline] |
Searches for the word with the lowest occurrences in the parse result and returns the number of occurrences.
- Returns:
- the number of minimal occurrences
Map<String, Word> pn::parse::ParseResult::getWordCounts |
( |
| ) |
[inline] |
Returns a collection containing all words that occur in this parse result along with the number of occurences in a sorted (descending) list.
- Returns:
- All words
void pn::parse::ParseResult::setLanguage |
( |
String |
language | ) |
[inline] |
Sets the language of the words
- Parameters:
-
void pn::parse::ParseResult::update |
( |
| ) |
[inline] |
Updates the result, calculating all words and their number of occurences.
The documentation for this class was generated from the following file:
- /home/christopher/Uni/MSc/Semester 1/INFOVIS UE/Code/phrase-nets/src/pn/parse/ParseResult.java