tcflib.tagsets package¶
tcflib.tagsets.base module¶
This module provides an API for common linguistic tagsets as used in TCF.
Bases:
object
Base class for Tags.
Tests if the tag is the same or a child of the given tag.
Parameters: tag – The tag to compare to.
Bases:
object
Base class for TagSets.
Finds a tag by name or PID.
Either pass name or pid, but not both.
Returns all tags in the tagset.
Bases:
tcflib.tagsets.base.TagBase
,lxml.etree.ElementBase
Base class for ISOcat Tags.
Tests if the tag is the same or a child of the given tag.
Parameters: tag – The tag to compare to.
Returns the parent tag (or None).
Returns a list of all ancestor tags.
Returns the top-most ancestor tag (or self).
Bases:
tcflib.tagsets.base.TagSetBase
Base class for ISOcat TagSets.
alias of
ISOcatTag
Finds a tag by name or PID.
Either pass name or pid, but not both.
Returns all tags in the tagset.
Bases:
tcflib.tagsets.base.ISOcatTag
A Tag that maps names to ISOcat pids.
See the MappingTagSet for description.
Bases:
tcflib.tagsets.base.ISOcatTagSet
A TagSet that maps names to ISOcat pids.
This base class can be used to create TagSets with name aliases for ISOcat TagSets. This way, arbitrary TagSets can be modeled onto ISOcat, getting e.g. hierarchy information from ISOcat while using established names.
alias of
MappingTag
Finds a tag by name or PID.
Either pass name or pid, but not both.
Bases:
tcflib.tagsets.base.ISOcatTag
Base class for ISOcat Part-of-Speech-Tags.
If the tag is defined as a closed word class.
Bases:
tcflib.tagsets.base.ISOcatTagSet
Base class for ISOcat Part-of-Speech-TagSets.
Register a TagSet class.
Registered TagSets can be looked up by their name.
Return a TagSet instance for a given name.
tcflib.tagsets.dc1345 module¶
A POS tagset based on ISOcat DC-1345.
Bases:
tcflib.tagsets.base.POSTagSetBase
alias of
POSTag
tcflib.tagsets.stein module¶
The Stein tagset mapped onto ISOcat DC-1345.
Bases:
tcflib.tagsets.base.MappingTagSet
,tcflib.tagsets.dc1345.POSTagSet
alias of
SteinTag
tcflib.tagsets.stts module¶
The STTS tagset mapped onto ISOcat DC-1345.
Bases:
tcflib.tagsets.base.MappingTagSet
,tcflib.tagsets.dc1345.POSTagSet
alias of
STTag