Each ULTaggedWord object represents the list of possible interpretations of a word from a sentence, ordered by decreasing likelihood. For example, in the sentence "Alice drinks coffee", the most likely interpretation of the word "drinks" would be as the third-person singular form of the verb "to drink". The word "drinks" also has a less likely (in this sentence) interpretation as the plural of the noun "drink". Thus, the list of tags corresponding to "drinks" in the context of the sentence "Alice drinks coffee" would have two elements, first the verb and second the noun.
More...
#include <ulpartofspeechtagger.h>
Each ULTaggedWord object represents the list of possible interpretations of a word from a sentence, ordered by decreasing likelihood. For example, in the sentence "Alice drinks coffee", the most likely interpretation of the word "drinks" would be as the third-person singular form of the verb "to drink". The word "drinks" also has a less likely (in this sentence) interpretation as the plural of the noun "drink". Thus, the list of tags corresponding to "drinks" in the context of the sentence "Alice drinks coffee" would have two elements, first the verb and second the noun.
ULTaggedWord objects are used by one form of ULPartOfSpeechTagger::getTags to return detailed tagging results.
ULTaggedWord::ULTaggedWord |
( |
| ) |
|
ULTaggedWord::~ULTaggedWord |
( |
| ) |
|
|
virtual |
const ULString & ULTaggedWord::getSurfaceForm |
( |
| ) |
const |
- Returns
- the surface form of the word whose tagging is represented by this ULTaggedWord object.
- Returns
- a const reference to the list of tags for the word whose tagging is represented by this ULTaggedWord object.
bool ULTaggedWord::operator< |
( |
const ULTaggedWord & |
other | ) |
const |
Less-than operator, to enable insertion into sorted lists.
bool ULTaggedWord::operator== |
( |
const ULTaggedWord & |
other | ) |
const |
The documentation for this class was generated from the following files: