Segment¶
- class corpustools.corpus.classes.lexicon.Segment(symbol, features=None)[source]¶
Class for segment symbols
- Parameters
- symbolstr
Segment symbol
- Attributes
- _featuresdict
Feature specification for the segment
Methods
__init__
(symbol[, features])feature_match
(specification)Return true if segment matches specification, false otherwise.
minimal_difference
(other, features)Check if this segment is a minimal feature difference with another segment (ignoring some _features)
specify
(feature_dict)Specify a segment with a new feature specification