ULAPI  8.0
Public Member Functions | Friends | List of all members
ULTaggedWord Class Reference

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>

Public Member Functions

 ULTaggedWord ()
 
 ULTaggedWord (const ULTaggedWord &other)
 
virtual ~ULTaggedWord ()
 
void operator= (const ULTaggedWord &other)
 
bool operator== (const ULTaggedWord &other) const
 
bool operator< (const ULTaggedWord &other) const
 
const ULStringgetSurfaceForm () const
 
const ULList< ULDerivation > & getTagList () const
 

Friends

class ULPartOfSpeechTagger
 

Detailed Description

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.

Constructor & Destructor Documentation

ULTaggedWord::ULTaggedWord ( )

Default constructor.

ULTaggedWord::ULTaggedWord ( const ULTaggedWord other)

Copy constructor.

ULTaggedWord::~ULTaggedWord ( )
virtual

Destructor.

Member Function Documentation

const ULString & ULTaggedWord::getSurfaceForm ( ) const
Returns
the surface form of the word whose tagging is represented by this ULTaggedWord object.
const ULList< ULDerivation > & ULTaggedWord::getTagList ( ) const
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.

void ULTaggedWord::operator= ( const ULTaggedWord other)

Assignment operator.

bool ULTaggedWord::operator== ( const ULTaggedWord other) const

Equality operator.

Friends And Related Function Documentation

friend class ULPartOfSpeechTagger
friend

The documentation for this class was generated from the following files: