"Lemma is a Form subclass representing a form chosen by convention to designate the Lexical Entry. The lemma is usually equivalent to one of the inflected forms, the root, stem or compound phrase." (LMF).
More...
"Lemma is a Form subclass representing a form chosen by convention to designate the Lexical Entry. The lemma is usually equivalent to one of the inflected forms, the root, stem or compound phrase." (LMF).
Definition at line 9 of file lemma.py.
def pylmflib.pylmflib.morphology.lemma.Lemma.__init__ |
( |
|
self | ) |
|
Constructor.
Lemma instance is owned by LexicalEntry.
- Returns
- A Lemma instance.
Definition at line 12 of file lemma.py.
def pylmflib.pylmflib.morphology.lemma.Lemma.__del__ |
( |
|
self | ) |
|
Destructor.
Definition at line 22 of file lemma.py.
def pylmflib.pylmflib.morphology.lemma.Lemma.add_form_representation |
( |
|
self, |
|
|
|
form_representation |
|
) |
| |
Add a form representation to the lemma.
- Parameters
-
form_representation | The FormRepresentation instance to add to the lemma. |
- Returns
- Lemma instance.
Definition at line 47 of file lemma.py.
def pylmflib.pylmflib.morphology.lemma.Lemma.create_form_representation |
( |
|
self | ) |
|
Create a form representation.
- Returns
- FormRepresentation instance.
Definition at line 41 of file lemma.py.
def pylmflib.pylmflib.morphology.lemma.Lemma.find_form_representations |
( |
|
self, |
|
|
|
type |
|
) |
| |
Find variant forms.
This attribute is owned by FormRepresentation.
- Parameters
-
type | The type to consider to retrieve the variant form. |
- Returns
- A Python list of found FormRepresentation attributes 'variantForm'.
Definition at line 55 of file lemma.py.
def pylmflib.pylmflib.morphology.lemma.Lemma.get_citation_forms |
( |
|
self, |
|
|
|
script_name = None |
|
) |
| |
Get all citation forms.
This attribute is owned by FormRepresentation.
- Parameters
-
script_name | If provided, get only citation forms that are written using this script. |
- Returns
- A Python list of FormRepresentation attributes 'citationForm'.
Definition at line 299 of file lemma.py.
def pylmflib.pylmflib.morphology.lemma.Lemma.get_contextual_variations |
( |
|
self | ) |
|
Get all contextual variations.
This attribute is owned by FormRepresentation.
- Returns
- A Python list of FormRepresentation attributes 'contextualVariation'.
Definition at line 236 of file lemma.py.
def pylmflib.pylmflib.morphology.lemma.Lemma.get_form_representation |
( |
|
self, |
|
|
|
index |
|
) |
| |
Get a given form representation maintained by the lemma.
- Parameters
-
index | The index of the wanted form representation. |
- Returns
- The wanted FormRepresentation instance.
Definition at line 73 of file lemma.py.
def pylmflib.pylmflib.morphology.lemma.Lemma.get_form_representations |
( |
|
self | ) |
|
Get all form representations maintained by the lemma.
- Returns
- A Python list of form representations.
Definition at line 67 of file lemma.py.
def pylmflib.pylmflib.morphology.lemma.Lemma.get_lexeme |
( |
|
self | ) |
|
Get lexeme.
- Returns
- Lemma attribute 'lexeme'.
Definition at line 35 of file lemma.py.
def pylmflib.pylmflib.morphology.lemma.Lemma.get_phonetic_forms |
( |
|
self, |
|
|
|
script_name = None |
|
) |
| |
Get all phonetic forms.
This attribute is owned by FormRepresentation.
- Parameters
-
script_name | If provided, get only phonetic forms that are written using this script. |
- Returns
- A Python list of FormRepresentation attributes 'phoneticForm'.
Definition at line 205 of file lemma.py.
def pylmflib.pylmflib.morphology.lemma.Lemma.get_spelling_variants |
( |
|
self | ) |
|
Get all spelling variants.
This attribute is owned by FormRepresentation.
- Returns
- A Python list of FormRepresentation attributes 'spellingVariant'.
Definition at line 266 of file lemma.py.
def pylmflib.pylmflib.morphology.lemma.Lemma.get_tones |
( |
|
self | ) |
|
Get all tones.
This attribute is owned by FormRepresentation.
- Returns
- A Python list of FormRepresentation attributes 'tone'.
Definition at line 153 of file lemma.py.
def pylmflib.pylmflib.morphology.lemma.Lemma.get_transliterations |
( |
|
self | ) |
|
Get all transliterations.
This attribute is owned by FormRepresentation.
- Returns
- A Python list of FormRepresentation attributes 'transliteration'.
Definition at line 349 of file lemma.py.
def pylmflib.pylmflib.morphology.lemma.Lemma.get_variant_forms |
( |
|
self, |
|
|
|
type = "unspecified" |
|
) |
| |
Get all variant forms of specified type.
This attribute is owned by FormRepresentation.
- Returns
- A Python list of FormRepresentation attributes 'variantForm' if type matches.
Definition at line 103 of file lemma.py.
def pylmflib.pylmflib.morphology.lemma.Lemma.set_audio |
( |
|
self, |
|
|
|
media_type, |
|
|
|
file_name, |
|
|
|
author, |
|
|
|
quality, |
|
|
|
start_position, |
|
|
|
duration, |
|
|
|
external_reference, |
|
|
|
audio_file_format |
|
) |
| |
Set audio resource.
Attributes 'mediaType', 'fileName', 'author', 'quality', 'startPosition', 'durationOfEffectiveSpeech', 'externalReference', 'audioFileFormat' are owned by Material/Audio, which is owned by FormRepresentation.
- Parameters
-
media_type | The media type to set. |
file_name | Name of the audio file. |
author | Author of the recording. |
quality | Quality of the recording, in range 'quality_range' defined in 'common/range.py'. |
start_position | Start position of the form in the recording, in format 'Thh:mm:ss,msms', e.g. "T00:05:00". |
duration | Duration of the effcetive speech, in format 'PThhHmmMssS', e.g. "PT00:05:00". |
external_reference | Reference of the audio file, if not directly provided. |
audio_file_format | Format of the audio file, e.g. "wav". |
- Returns
- Lemma instance.
Definition at line 379 of file lemma.py.
def pylmflib.pylmflib.morphology.lemma.Lemma.set_citation_form |
( |
|
self, |
|
|
|
citation_form, |
|
|
|
script_name = None |
|
) |
| |
Set citation form.
This attribute is owned by FormRepresentation.
- Parameters
-
citation_form | The citation form to set. |
script_name | The name of the script used to write the citation form, e.g. devanagari. |
- Returns
- Lemma instance.
Definition at line 277 of file lemma.py.
def pylmflib.pylmflib.morphology.lemma.Lemma.set_contextual_variation |
( |
|
self, |
|
|
|
contextual_variation |
|
) |
| |
Set contextual variation.
This attribute is owned by FormRepresentation.
- Parameters
-
contextual_variation | The contextual variation to set. |
- Returns
- Lemma instance.
Definition at line 217 of file lemma.py.
def pylmflib.pylmflib.morphology.lemma.Lemma.set_dialect |
( |
|
self, |
|
|
|
dialect |
|
) |
| |
Set dialect.
This attribute is owned by FormRepresentation.
- Parameters
-
dialect | The dialect to set. |
- Returns
- Lemma instance.
Definition at line 311 of file lemma.py.
def pylmflib.pylmflib.morphology.lemma.Lemma.set_geographical_variant |
( |
|
self, |
|
|
|
geographical_variant |
|
) |
| |
Set geographical variant.
This attribute is owned by FormRepresentation.
- Parameters
-
geographical_variant | The geographical variant to set. |
- Returns
- Lemma instance.
Definition at line 164 of file lemma.py.
def pylmflib.pylmflib.morphology.lemma.Lemma.set_lexeme |
( |
|
self, |
|
|
|
lexeme |
|
) |
| |
Set lexeme.
- Parameters
-
- Returns
- Lemma instance.
Definition at line 27 of file lemma.py.
def pylmflib.pylmflib.morphology.lemma.Lemma.set_phonetic_form |
( |
|
self, |
|
|
|
phonetic_form, |
|
|
|
script_name = None |
|
) |
| |
Set phonetic form.
This attribute is owned by FormRepresentation.
- Parameters
-
phonetic_form | The phonetic form to set. |
script_name | The name of the script used to write the phonetic form, e.g. pinyin. |
- Returns
- Lemma instance.
Definition at line 183 of file lemma.py.
def pylmflib.pylmflib.morphology.lemma.Lemma.set_script_name |
( |
|
self, |
|
|
|
script_name |
|
) |
| |
Set script name.
This attribute is owned by FormRepresentation.
- Parameters
-
script_name | The script name to set. |
- Returns
- Lemma instance.
Definition at line 360 of file lemma.py.
def pylmflib.pylmflib.morphology.lemma.Lemma.set_spelling_variant |
( |
|
self, |
|
|
|
spelling_variant |
|
) |
| |
Set spelling variant.
This attribute is owned by FormRepresentation.
- Parameters
-
spelling_variant | The spelling variant to set. |
- Returns
- Lemma instance.
Definition at line 247 of file lemma.py.
def pylmflib.pylmflib.morphology.lemma.Lemma.set_tone |
( |
|
self, |
|
|
|
tone |
|
) |
| |
Set tone.
This attribute is owned by FormRepresentation.
- Parameters
-
- Returns
- Lemma instance.
Definition at line 134 of file lemma.py.
def pylmflib.pylmflib.morphology.lemma.Lemma.set_transliteration |
( |
|
self, |
|
|
|
transliteration |
|
) |
| |
Set transliteration.
This attribute is owned by FormRepresentation.
- Parameters
-
transliteration | The transliteration to set. |
- Returns
- Lemma instance.
Definition at line 330 of file lemma.py.
def pylmflib.pylmflib.morphology.lemma.Lemma.set_variant_comment |
( |
|
self, |
|
|
|
comment, |
|
|
|
language = None |
|
) |
| |
Set variant comment and language.
These attributes are owned by FormRepresentation.
- Parameters
-
comment | Variant comment. |
language | Language of comment. |
- Returns
- Lemma instance.
Definition at line 114 of file lemma.py.
def pylmflib.pylmflib.morphology.lemma.Lemma.set_variant_form |
( |
|
self, |
|
|
|
variant_form, |
|
|
|
type = "unspecified" |
|
) |
| |
Set variant form and type.
These attributes are owned by FormRepresentation.
- Parameters
-
variant_form | Variant form. |
type | Type of variant, in range 'type_variant_range' defined in 'common/range.py'. |
- Returns
- Lemma instance.
Definition at line 83 of file lemma.py.
pylmflib.pylmflib.morphology.lemma.Lemma.hyphenation |
pylmflib.pylmflib.morphology.lemma.Lemma.lexeme |
The documentation for this class was generated from the following file:
- /Users/celine/Work/CNRS/workspace/pylmflib/pylmflib/morphology/lemma.py