Module processors.xml.term
Term processor
Classes
class TermProcessor (reader, writer, doc_id)
-
A class to extract terminological data from a standard.
Ancestors
- Processor
- abc.ABC
Class variables
var fieldnames
-
Column names.
Name Description Element Attribute doc_id Document id tds_id Terminology section <term-sec> id label Label of element <label> note Additional information <tbx:note> lang Language <tbx:langSet> xml:lang definition Definition <tbx:definition> source Authoritive source <tbx:source> term_id Term information group identifier <tig> id term Term <tbx:term> pos PartOfSpeech <tbx:partOfSpeech> norm_auth The status of the term <tbx:normativeAuthorization>
Methods
def converter(self, data)
-
Parse XML and extract TBX records.
Args
data
:str
- XML document
Returns
list
- A list with dictionaries.
Inherited members