An object of type ULExample represents a single example.
More...
#include <ulexample.h>
An object of type ULExample represents a single example.
ULExample::ULExample |
( |
const ULExample & |
other | ) |
|
ULExample::~ULExample |
( |
| ) |
|
|
virtual |
Inserts the specified feature into this ULExample's feature list. If an identical feature already exists, this method does nothing.
- Parameters
-
[in] | featureType | The type of the desired feature. |
[in] | value | The value to associate with the specified feature type. |
void ULExample::addFeature |
( |
const ULFeature & |
feature | ) |
|
Inserts the specified feature into this ULExample's feature list. If an identical feature already exists, this method does nothing.
- Parameters
-
void ULExample::clear |
( |
| ) |
|
Private method that supports several of the public methods.
- Returns
- true if this ULExample object has a feature of the specified type, false if not.
- Parameters
-
[in] | featureType | the desired feature |
[out] | featureValue | the integer feature value |
Gets the feature associated with the specified feature type, if any such feature exists in this ULPartOfSpeech's feature list.
- Returns
- true if this ULExample has a feature with the specified type.
- Parameters
-
[in] | featureType | the type of the desired feature. |
[out] | feature | the desired feature. |
- Returns
- the text feature for this ULExample if one exists, or an empty string if one does not.
ULString ULExample::getTranslation |
( |
| ) |
const |
- Returns
- the translation feature for this ULExample if one exists, or an empty string if one does not.
bool ULExample::hasFeature |
( |
const ULFeatureType & |
featureType | ) |
const |
- Returns
- true if this ULExample has a feature with the specified feature type.
bool ULExample::operator!= |
( |
const ULExample & |
other | ) |
const |
bool ULExample::operator== |
( |
const ULExample & |
other | ) |
const |
If this ULExample's feature list already has a feature with the specified ID, change that feature's value to the specified value. Otherwise, add a new feature to the list. If more than one feature with the specified ID already exists, change the value for all of the matching features.
- Parameters
-
[in] | featureType | the type of the desired feature. |
[in] | value | the integer value to associate with the specified feature type. |
- Returns
- a human-readable representation of this ULPartOfSpeech. TODO: include features
The documentation for this class was generated from the following files: