phrase nets
|
Public Member Functions | |
LinkerOrthographic () | |
void | setDataSource (DataSource source) |
DataSource | getDataSource () |
void | addLinkWord (String word) |
void | addLinkWords (String[] words) |
void | removeLinkWord (String word) |
void | clearLinkWords () |
ParseResult | link () throws PNException |
boolean | isReady () |
A linker based on pattern-matching.
pn::parse::LinkerOrthographic::LinkerOrthographic | ( | ) | [inline] |
Ctor.
void pn::parse::LinkerOrthographic::addLinkWord | ( | String | word | ) | [inline] |
Adds a link word.
Example: The link word " and " will cause the linker to match all phrases "X and Y", with X and Y being words, while "'s " will match "X's Y".
link | The link word to add. Must not be null |
void pn::parse::LinkerOrthographic::addLinkWords | ( | String[] | words | ) | [inline] |
Adds an array of link words; see addLinkWord().
words | The link words to add |
void pn::parse::LinkerOrthographic::clearLinkWords | ( | ) | [inline] |
Clears all link words.
DataSource pn::parse::LinkerOrthographic::getDataSource | ( | ) | [inline] |
Implements pn::parse::Linker.
boolean pn::parse::LinkerOrthographic::isReady | ( | ) | [inline] |
Returns true if this linker is 'ready', e.g. if it has all information to start the linking process, otherwise false.
Implements pn::parse::Linker.
ParseResult pn::parse::LinkerOrthographic::link | ( | ) | throws PNException [inline] |
Parses the data source and returns the result.
PNException | On any erros |
Implements pn::parse::Linker.
void pn::parse::LinkerOrthographic::removeLinkWord | ( | String | word | ) | [inline] |
Removes a link word.
word | The link word to remove. Must not be null |
void pn::parse::LinkerOrthographic::setDataSource | ( | DataSource | source | ) | [inline] |
Sets the data source to use. Must not be null
source | The data source |
Implements pn::parse::Linker.