Home | Trees | Indices | Help |
|
---|
|
Provides an abstract ReadingOperator for tonal languages for a reading based on a fixed set of reading entities.
It provides two methods getTonalEntity() and splitEntityTone() to cope with tonal information in text.
The class itself can't be used directly, it has to be subclassed and its methods need to be extended.
|
|||
|
|||
list |
|
||
str |
|
||
tuple |
|
||
list of str |
|
||
set of str |
|
||
bool |
|
||
bool |
|
||
Inherited from Inherited from |
|
|||
Inherited from |
|
|||
Inherited from |
|
|||
Inherited from |
|
Creates an instance of the TonalFixedEntityOperator.
|
Returns a set of tones supported by the reading. These tones don't necessarily reflect the tones of the underlying language but may defer to reflect notational or other features. The default implementation will raise a NotImplementedError.
|
Gets the entity with tone mark for the given plain entity and tone. The default implementation will raise a NotImplementedError.
|
Splits the entity into an entity without tone mark (plain entity) and the entity's tone. The default implementation will raise a NotImplementedError.
|
Gets a set of all entities supported by the reading. The list is used in the segmentation process to find entity boundaries.
|
Gets the list of plain entities supported by this reading. Different to getReadingEntities() the entities will carry no tone mark. The default implementation will raise a NotImplementedError.
|
Returns true if the given plain entity (without any tone mark) is recognised by the romanisation operator, i.e. it is a valid entity of the reading returned by the segmentation method.
|
Returns true if the given entity is recognised by the reading operator, i.e. it is a valid entity of the reading returned by decompose(). The default implementation will raise a NotImplementedError.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue May 19 22:38:40 2009 | http://epydoc.sourceforge.net |