Module Expr Str ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias identifier ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Assign NameStore Dict AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str ListLoad Str Str ListLoad Str Str ListLoad Str Str ListLoad Str Str ListLoad Str Str ListLoad Str Str ClassDef bases AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Dict Str SubscriptLoad Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Dict Str Str Str Str Str Str Str ListLoad ListLoad ListLoad ListLoad ListLoad ListLoad ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore NameLoad body If CompareEq AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd Str SubscriptLoad AttributeLoad NameLoad attr Index Str Str Str body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Dict Str Str SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str orelse If CompareEq AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd Str SubscriptLoad AttributeLoad NameLoad attr Index Str Str Str body For TupleStore NameStore NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str body If CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num NameLoad orelse If CompareEq AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd Str SubscriptLoad AttributeLoad NameLoad attr Index Str Str Str body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Dict Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd Str SubscriptLoad AttributeLoad NameLoad attr Index Str Str Str body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Dict Str Str Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd Str SubscriptLoad AttributeLoad NameLoad attr Index Str Str Str body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Dict Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd Str SubscriptLoad AttributeLoad NameLoad attr Index Str Str Str body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Dict Str Str Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd Str SubscriptLoad AttributeLoad NameLoad attr Index Str Str Str body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Dict Str Str Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd Str SubscriptLoad AttributeLoad NameLoad attr Index Str Str Str body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Dict Str Str Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareGt Call NameLoad Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return ListLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq AttributeLoad NameLoad attr Str body Return ListLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str orelse If CompareEq AttributeLoad NameLoad attr Str body Return ListLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str orelse If CompareEq AttributeLoad NameLoad attr Str body Return ListLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareEq AttributeLoad NameLoad attr Str body Return ListComp Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str comprehension NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr orelse If BoolOpOr CompareEq AttributeLoad NameLoad attr Str CompareEq AttributeLoad NameLoad attr Str body Assign NameStore ListLoad For NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr body If CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr SubscriptLoad NameLoad Index Str NameLoad NameLoad Return NameLoad orelse Return ListComp Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str comprehension NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareNotEq NameLoad Str body If CompareNotEq NameLoad Str body Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad BinOpAdd Call NameLoad AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list decorator_list ClassDef bases AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Dict Str Str Str Str Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str Str Str body Expr Str Assign NameStore Dict Str Str Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str attr NameLoad Assign AttributeStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Dict Str NameLoad For NameStore NameLoad body Assign AttributeStore Call AttributeLoad NameLoad attr NameLoad Str Dict Str NameLoad attr SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str Str body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore ListLoad If CompareEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str For NameStore NameLoad body Assign NameStore ListLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str attr Call AttributeLoad Str attr ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str For NameStore NameLoad body Assign NameStore ListLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad AugAssignAdd AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad Str attr ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr keyword NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str attr Call AttributeLoad Str attr ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpOr CompareEq NameLoad Str Call AttributeLoad NameLoad attr Str NameLoad body Continue Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Dict Str Str Call AttributeLoad NameLoad attr Str If CompareEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareEq Call NameLoad NameLoad Num body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Dict Str Str Str Str For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Dict Str Str NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore NameLoad orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpAnd CompareEq Call NameLoad AttributeLoad NameLoad attr Num CompareEq Call NameLoad AttributeLoad NameLoad attr Num CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Return If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Str If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Str If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpSub NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareEq Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num If UnaryOpNot Call NameLoad GeneratorExp CompareIn NameLoad NameLoad comprehension NameStore Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad orelse Assign AttributeStore AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore ListLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIs Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str If BoolOpAnd CompareIn Str NameLoad CompareNotEq NameLoad Str body Return NameLoad If CompareIn Str NameLoad body Assign NameStore Str For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot NameLoad NameLoad body If BoolOpAnd Call NameLoad NameLoad NameLoad CompareEq Call NameLoad NameLoad Num body If CompareIn SubscriptLoad NameLoad Index Num Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num orelse Expr Call AttributeLoad NameLoad attr NameLoad orelse If UnaryOpNot Call AttributeLoad NameLoad attr body If CompareIn Str NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num orelse If CompareIn Str NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num orelse If CompareIn Str NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore NameLoad body If CompareNotEq NameLoad Str body Assign AttributeStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareEq Call NameLoad NameLoad Num body Assign AttributeStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq NameLoad Str body Return Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num TryExcept body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str Assign NameStore BinOpAdd Call NameLoad BinOpMult AttributeLoad Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr attr Num NameLoad handlers ExceptHandler type NameLoad body Assign NameStore BinOpAdd BinOpMult Call NameLoad SubscriptLoad NameLoad Index Num Num NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad BinOpAdd Call NameLoad AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad BinOpAdd Call NameLoad AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call NameLoad GeneratorExp CompareIn NameLoad NameLoad comprehension NameStore Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str If BoolOpAnd CompareIn Str NameLoad CompareNotEq NameLoad Str body Continue If CompareIn Str NameLoad body Assign NameStore Str For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str If BoolOpAnd CompareIs NameLoad NameLoad BoolOpOr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list
N/A N/A This module contains classes to access to
parse and generate Typecraft files from a
GrAF object.
 __future__ absolute_import __future__ unicode_literals N/A codecs N/A time N/A datetime N/A re N/A xml.etree.ElementTree ET xml.etree.ElementTree tostring xml.dom minidom N/A poioapi.io.graf N/A poioapi.annotationgraph N/A poioapi.data N/A poioapi.mapper N/A tier_map N/A N/A N/A poioapi data TIER_UTTERANCE N/A N/A poioapi data TIER_WORD N/A N/A poioapi data TIER_MORPHEME N/A N/A poioapi data TIER_POS N/A N/A poioapi data TIER_GLOSS N/A N/A poioapi data TIER_TRANSLATION N/A N/A poioapi data TIER_COMMENT N/A phrase utterance_gen N/A word t N/A morpheme m N/A pos p N/A gloss g N/A translation f N/A comment nt Parser N/A N/A N/A N/A poioapi io graf BaseParser N/A N/A 
    Class that will handle the parse of
    Typecraft files.

     __init__ N/A N/A self filepath N/A N/A N/A Class's constructor.

        Parameters
        ----------
        filepath : str
            Path of the typecraft file.

         N/A N/A self filepath filepath N/A N/A N/A self parse N/A parse N/A N/A self N/A N/A N/A This method it will parse the Typecraft
        file.

         N/A N/A self nodetree N/A N/A ET parse N/A self filepath N/A N/A self tree N/A N/A N/A self nodetree getroot N/A N/A self namespace N/A xmlns N/A N/A N/A re findall \{(.*?)\} N/A N/A self tree tag N/A 0 N/A N/A self _current_id 0 N/A N/A self _elements_map N/A phrase word translation description pos morpheme gloss N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A self parse_element_tree N/A self tree N/A parse_element_tree N/A N/A self tree N/A N/A N/A This method it will parse the XML elements
        into a map. It also create ids for the child
        elements since they are not present in the
        XML.

         N/A element tree N/A N/A N/A N/A element tag N/A N/A N/A { N/A N/A self namespace N/A xmlns } phrase N/A N/A N/A N/A N/A N/A self _elements_map N/A phrase append N/A id attrib N/A N/A element attrib N/A id N/A element attrib N/A N/A self _current_phrase_id N/A N/A element attrib N/A id N/A N/A N/A N/A element tag N/A N/A N/A { N/A N/A self namespace N/A xmlns } original N/A N/A N/A i el N/A enumerate N/A N/A self _elements_map N/A phrase N/A N/A N/A N/A el N/A id N/A self _current_phrase_id N/A N/A N/A el N/A value N/A element text N/A N/A N/A N/A self _elements_map N/A phrase N/A 0 el N/A N/A N/A N/A element tag N/A N/A N/A { N/A N/A self namespace N/A xmlns } word N/A N/A N/A self _current_word_id N/A N/A self _next_id N/A N/A N/A N/A N/A self _elements_map N/A word append N/A id attrib parent N/A self _current_word_id N/A element attrib N/A self _current_phrase_id N/A N/A N/A N/A element tag N/A N/A N/A { N/A N/A self namespace N/A xmlns } pos N/A N/A N/A N/A N/A N/A self _elements_map N/A pos append N/A id value parent N/A N/A self _next_id N/A element text N/A self _current_word_id N/A N/A N/A N/A element tag N/A N/A N/A { N/A N/A self namespace N/A xmlns } morpheme N/A N/A N/A self _current_morpheme_id N/A N/A self _next_id N/A N/A N/A N/A N/A self _elements_map N/A morpheme append N/A id attrib parent N/A self _current_morpheme_id N/A element attrib N/A self _current_word_id N/A N/A N/A N/A element tag N/A N/A N/A { N/A N/A self namespace N/A xmlns } gloss N/A N/A N/A N/A N/A N/A self _elements_map N/A gloss append N/A id value parent N/A N/A self _next_id N/A element text N/A self _current_morpheme_id N/A N/A N/A N/A element tag N/A N/A N/A { N/A N/A self namespace N/A xmlns } description N/A N/A N/A N/A N/A N/A self _elements_map N/A description append N/A id value parent N/A N/A self _next_id N/A element text N/A self _current_phrase_id N/A N/A N/A N/A element tag N/A N/A N/A { N/A N/A self namespace N/A xmlns } translation N/A N/A N/A N/A N/A N/A self _elements_map N/A translation append N/A id value parent N/A N/A self _next_id N/A element text N/A self _current_phrase_id N/A N/A N/A len N/A N/A element getchildren 0 N/A N/A N/A N/A self parse_element_tree element N/A get_root_tiers N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A poioapi io graf Tier phrase N/A get_child_tiers_for_tier N/A N/A self tier N/A N/A N/A N/A N/A tier name phrase N/A N/A N/A N/A N/A N/A N/A poioapi io graf Tier word N/A N/A N/A N/A poioapi io graf Tier translation N/A N/A N/A N/A poioapi io graf Tier description N/A N/A N/A N/A tier name word N/A N/A N/A N/A N/A N/A N/A poioapi io graf Tier pos N/A N/A N/A N/A poioapi io graf Tier morpheme N/A N/A N/A N/A tier name morpheme N/A N/A N/A N/A N/A N/A N/A poioapi io graf Tier gloss N/A get_annotations_for_tier N/A N/A self tier annotation_parent N/A None N/A N/A N/A N/A tier name phrase N/A N/A N/A N/A N/A N/A N/A poioapi io graf Annotation N/A e N/A id N/A e N/A value N/A N/A self _get_features N/A e N/A attrib N/A e N/A N/A self _elements_map N/A N/A tier name N/A N/A N/A N/A N/A tier name word N/A N/A tier name morpheme N/A N/A annotations N/A N/A e N/A N/A self _elements_map N/A N/A tier name N/A N/A N/A N/A e N/A parent N/A annotation_parent id N/A N/A features N/A N/A self _get_features N/A e N/A attrib N/A value N/A N/A e N/A attrib N/A text N/A N/A N/A annotations append N/A N/A N/A N/A poioapi io graf Annotation N/A e N/A id value features N/A annotations N/A N/A N/A N/A N/A N/A N/A poioapi io graf Annotation N/A e N/A id N/A e N/A value N/A e N/A N/A self _elements_map N/A N/A tier name N/A N/A e N/A parent N/A annotation_parent id N/A get_primary_data N/A N/A self N/A N/A N/A This method gets the information about
        the source data file which in this case is
        going to be always unknown.

        Returns
        -------
        primary_data : object
            PrimaryData object.

         N/A primary_data N/A N/A N/A N/A poioapi io graf PrimaryData N/A N/A primary_data type N/A N/A N/A poioapi io graf NONE N/A N/A primary_data filename unknown N/A primary_data N/A _get_features N/A N/A self attributes N/A N/A N/A This method gets the attribute data from
        the tag elements.

         N/A features N/A N/A N/A key value N/A N/A attributes items N/A N/A N/A key id N/A N/A N/A key text N/A N/A N/A features N/A key value N/A features N/A _next_id N/A N/A self N/A N/A N/A current_id N/A str N/A N/A int N/A self _current_id 1 N/A N/A self _current_id current_id N/A current_id N/A region_for_annotation N/A N/A self annotation N/A N/A N/A N/A tier_has_regions N/A N/A self tier N/A N/A N/A N/A N/A Writer N/A N/A N/A N/A poioapi io graf BaseWriter N/A N/A 
    A writer for Typecraft XML.

     __init__ N/A N/A self N/A N/A N/A N/A self _current_text_id 0 N/A N/A self _current_phrase_id 0 N/A N/A self _additional_maps_file N/A N/A self _root None N/A N/A self _text None N/A N/A self _phrase_element None N/A N/A self _word_element None N/A N/A self _pos_element None N/A N/A self _morpheme_element None N/A N/A self _annotation_mapper None N/A N/A self _elan_begin_nodes None N/A N/A self _elan_end_nodes None N/A N/A self _elan_participant_nodes None N/A N/A self _body None N/A _init_root_node N/A N/A self N/A N/A N/A  Method to initialize the root node to which add all the subelements.
         N/A N/A self _root N/A N/A ET Element typecraft N/A xsi:schemaLocation xmlns xmlns:xsi http://typecraft.org/typecraft.xsd http://typecraft.org/typecraft http://www.w3.org/2001/XMLSchema-instance N/A _create_text_node N/A N/A self language original_title translation_title N/A und Empty Title N/A N/A  Method to create the 'text' node and set some information about the node.
            Assumes that the 'root' node is already initiated.

            Parameters
            ----------
            language : str
            the language in which the original text is written.

            original_title : str
            The title of the text in the original language

            translation_title : str
            The title of the text in the translation language
         N/A attribs N/A id lang N/A N/A self _next_text_id language N/A N/A self _text N/A N/A ET SubElement N/A self _root text attribs N/A N/A N/A N/A ET SubElement N/A self _text title text original_title N/A N/A N/A N/A ET SubElement N/A self _text titleTranslation text translation_title N/A _create_metadata_elements N/A N/A self metadata set_name N/A N/A N/A  Method to create the metadata element and its children.

            Parameters
            ----------
            :param metadata: dict
                The dictionary that contains the metadata to output.
            :param set_name: str
                The name of the metadata set to use.
         N/A meta_elem N/A N/A ET SubElement N/A self _text extraMetadata N/A setName set_name N/A meta metadata N/A N/A N/A N/A N/A ET SubElement meta_elem metadata N/A name meta text N/A metadata N/A meta N/A write N/A N/A self outputfile converter pretty_print extra_tag_map language N/A False und N/A N/A Writer for the Typecraft file. This method evaluate
        if all the Glosses and POS in the GrAF are validated
        against two specific Typecraft lists.

        Parameters
        ----------
        outputfile : str
            The output file name.
        converter : Converter
            Converter object from Poio API.
        pretty_print : boolean
            Boolean to set the XML pretty print.
        missing : boolean
            Whether to output the missing tags or not.
        extra_tag_map : str
            The path of the JSON file containing the extra maps
        language : str
            The ISO 639-3 code of the source's language

         N/A N/A self _additional_maps_file extra_tag_map N/A N/A self _annotation_mapper N/A N/A N/A poioapi mapper AnnotationMapper N/A converter source_type N/A N/A poioapi data TYPECRAFT N/A N/A N/A N/A self _annotation_mapper load_mappings extra_tag_map N/A N/A N/A self _init_root_node N/A phrase_nodes N/A N/A N/A N/A converter source_type N/A N/A poioapi data ODIN N/A N/A text_nodes N/A N/A N/A N/A text_nodes extend N/A N/A converter nodes_for_tier source N/A language N/A N/A converter meta_information N/A lang N/A text text_nodes N/A N/A phrase_nodes N/A N/A annot N/A N/A N/A text annotations get_first N/A text_md N/A N/A converter meta_information N/A N/A annot id N/A N/A N/A self _create_text_node language N/A N/A N/A self _create_metadata_elements text_md Default N/A marker N/A N/A N/A converter tier_mapper tier_labels N/A N/A poioapi data TIER_UTTERANCE N/A N/A N/A N/A phrase_nodes extend N/A N/A converter nodes_for_tier marker text N/A N/A N/A N/A ET SubElement N/A self _text body text N/A N/A join N/A N/A N/A converter annotation_value_for_node phrase N/A phrase phrase_nodes N/A N/A N/A self _write_phrases phrase_nodes converter N/A N/A N/A N/A converter source_type N/A N/A poioapi data TOOLBOX N/A N/A ref_nodes N/A N/A converter nodes_for_tier ref N/A N/A N/A self _create_text_node language language N/A N/A self _body N/A N/A ET SubElement N/A self _text body N/A N/A N/A self _body text N/A ref ref_nodes N/A N/A phrase_nodes N/A N/A marker N/A N/A N/A converter tier_mapper tier_labels N/A N/A poioapi data TIER_UTTERANCE N/A N/A N/A N/A phrase_nodes extend N/A N/A converter nodes_for_tier marker ref N/A N/A self _elan_begin_nodes N/A N/A converter nodes_for_tier ELANBegin ref N/A N/A self _elan_end_nodes N/A N/A converter nodes_for_tier ELANEnd ref N/A N/A self _elan_participant_nodes N/A N/A converter nodes_for_tier ELANParticipant ref N/A N/A N/A self _body text N/A N/A join N/A N/A N/A converter annotation_value_for_node phrase N/A phrase phrase_nodes N/A N/A N/A self _write_phrases phrase_nodes converter N/A N/A N/A N/A self _create_text_node language language N/A marker N/A N/A N/A converter tier_mapper tier_labels N/A N/A poioapi data TIER_UTTERANCE N/A N/A N/A N/A phrase_nodes extend N/A N/A converter nodes_for_tier marker None N/A N/A N/A N/A ET SubElement N/A self _text body text N/A N/A join N/A N/A N/A converter annotation_value_for_node phrase N/A phrase phrase_nodes N/A N/A N/A self _write_phrases phrase_nodes converter N/A N/A N/A self write_xml N/A self _root outputfile N/A _write_phrases N/A N/A self phrase_nodes converter N/A N/A N/A phrase phrase_nodes N/A N/A annotation N/A N/A converter annotation_value_for_node phrase N/A N/A N/A annotation N/A N/A re match ^\s+$ annotation N/A N/A N/A N/A self _phrase_element N/A N/A ET SubElement N/A self _text phrase N/A id valid N/A N/A self _next_phrase_id VALID N/A N/A N/A converter source_type N/A N/A poioapi data TOOLBOX N/A N/A N/A N/A self _write_elan_attributes converter N/A N/A N/A N/A ET SubElement N/A self _phrase_element original text annotation N/A N/A N/A self _write_translations converter phrase N/A N/A N/A ET SubElement N/A self _phrase_element description N/A N/A N/A ET SubElement N/A self _phrase_element globaltags N/A id tagset 1 Default N/A N/A N/A self _write_words converter phrase N/A _write_words N/A N/A self converter phrase N/A N/A N/A  Method to build the word nodes of the XML.

            Parameters
            ----------
            converter : poioapi.annotationgraph.AnnotationGraph
                Converter object from Poio API.
            phrase : graf.Node
                The parent node of the words
         N/A word_tier_markers N/A N/A N/A converter tier_mapper tier_labels N/A N/A poioapi data TIER_WORD N/A word_nodes N/A N/A marker word_tier_markers N/A N/A N/A N/A word_nodes extend N/A N/A converter nodes_for_tier marker phrase N/A N/A N/A len word_nodes 0 N/A N/A N/A self _word_element N/A N/A ET SubElement N/A self _phrase_element word N/A text head false N/A N/A N/A ET SubElement N/A self _word_element pos N/A N/A N/A ET SubElement N/A self _word_element morpheme N/A text baseform N/A word word_nodes N/A N/A annotation N/A N/A converter annotation_value_for_node word N/A N/A self _word_element N/A N/A ET SubElement N/A self _phrase_element word N/A text head annotation false N/A N/A self _pos_element N/A N/A ET SubElement N/A self _word_element pos N/A N/A N/A self _write_pos converter word N/A N/A N/A N/A self _pos_element text N/A N/A check_pos_in_morphemes True N/A N/A check_pos_in_morphemes False N/A N/A N/A self _write_morphemes converter word check_pos_in_morphemes N/A _write_elan_attributes N/A N/A self converter N/A N/A N/A  Writes the ELAN information for toolbox files.

            Parameters
            ----------
            :param converter: str
                The source for the attributes
         N/A N/A N/A N/A len N/A self _elan_begin_nodes 0 N/A N/A len N/A self _elan_end_nodes 0 N/A N/A len N/A self _elan_participant_nodes 0 N/A N/A N/A N/A N/A len N/A self _elan_begin_nodes 0 N/A N/A begin_node N/A N/A self _elan_begin_nodes N/A 0 N/A begin_annotation N/A N/A converter annotation_value_for_node begin_node N/A N/A begin_annotation 0 N/A N/A N/A len N/A self _elan_end_nodes 0 N/A N/A end_node N/A N/A self _elan_end_nodes N/A 0 N/A end_annotation N/A N/A converter annotation_value_for_node end_node N/A N/A end_annotation 0 N/A N/A N/A len N/A self _elan_participant_nodes 0 N/A N/A participant_node N/A N/A self _elan_participant_nodes N/A 0 N/A participant_annotation N/A N/A converter annotation_value_for_node participant_node N/A N/A participant_annotation N/A begin_time N/A N/A self _string_to_milliseconds begin_annotation N/A end_time N/A N/A self _string_to_milliseconds end_annotation N/A duration N/A end_time begin_time N/A N/A N/A N/A self _phrase_element set offset N/A str begin_time N/A N/A N/A N/A self _phrase_element set duration N/A str duration N/A N/A N/A N/A self _phrase_element set speaker participant_annotation N/A _write_pos N/A N/A self converter parent_node N/A N/A N/A  Method to build the word nodes of the XML.

            Parameters
            ----------
            converter : poioapi.annotationgraph.AnnotationGraph
                Converter object from Poio API.
            word : graf.Node
                The parent node of the part of speech tags
         N/A pos_annotations N/A N/A marker N/A N/A N/A converter tier_mapper tier_labels N/A N/A poioapi data TIER_POS N/A N/A N/A N/A pos_annotations extend N/A N/A converter annotations_for_tier marker parent_node N/A N/A N/A len pos_annotations 1 N/A N/A annotation N/A N/A converter annotation_value_for_annotation N/A pos_annotations N/A 0 N/A N/A N/A any N/A N/A c annotation N/A c ()/\.-?* N/A N/A mapping N/A N/A N/A self _annotation_mapper validate_tag N/A N/A poioapi data TIER_POS annotation N/A N/A mapping None N/A N/A N/A N/A N/A self _annotation_mapper add_to_missing N/A N/A poioapi data TIER_POS annotation N/A N/A N/A N/A self _pos_element text mapping N/A N/A N/A N/A self _pos_element text N/A _write_morphemes N/A N/A self converter word check_for_pos N/A False N/A N/A  Method to build the morpheme nodes of the XML.

            Parameters
            ----------
            converter : poioapi.annotationgraph.AnnotationGraph
                Converter object from Poio API.
            word : graf.Node
                The parent node of the words
         N/A morpheme_nodes N/A N/A marker N/A N/A N/A converter tier_mapper tier_labels N/A N/A poioapi data TIER_MORPHEME N/A N/A N/A N/A morpheme_nodes extend N/A N/A converter nodes_for_tier marker word N/A morpheme morpheme_nodes N/A N/A annotation N/A N/A converter annotation_value_for_node morpheme N/A N/A check_for_pos True N/A N/A N/A N/A self _write_pos converter morpheme N/A N/A self _morpheme_element N/A N/A ET SubElement N/A self _word_element morpheme N/A text baseform annotation annotation N/A N/A N/A self _write_gloss converter morpheme N/A N/A N/A N/A N/A self _word_element find morpheme None N/A N/A N/A N/A ET SubElement N/A self _word_element morpheme N/A _write_gloss N/A N/A self converter morpheme N/A N/A N/A  Method to build the gloss nodes of the XML.

            Parameters
            ----------
            converter : poioapi.annotationgraph.AnnotationGraph
                Converter object from Poio API.
            morpheme : graf.Node
                The parent node of the words
         N/A gloss_annotations N/A N/A marker N/A N/A N/A converter tier_mapper tier_labels N/A N/A poioapi data TIER_GLOSS N/A N/A N/A N/A gloss_annotations extend N/A N/A converter annotations_for_tier marker morpheme N/A gloss gloss_annotations N/A N/A annotation N/A N/A converter annotation_value_for_annotation gloss N/A splitter . N/A N/A N/A ? annotation N/A annotation ?IPFV N/A N/A None N/A N/A : annotation N/A N/A splitter : N/A token N/A N/A annotation split splitter N/A N/A gloss_list N/A N/A N/A self _annotation_mapper validate_tag N/A N/A poioapi data TIER_GLOSS token N/A N/A gloss_list None N/A N/A N/A N/A isinstance gloss_list tuple N/A N/A len gloss_list 2 N/A N/A N/A N/A gloss_list N/A 0 N/A N/A N/A converter tier_mapper tier_labels N/A N/A poioapi data TIER_POS N/A N/A N/A N/A self _pos_element text N/A gloss_list N/A 1 N/A N/A N/A N/A self _split_destination_tags gloss_list N/A N/A N/A N/A N/A annotation isupper N/A N/A N/A : annotation N/A N/A annotation N/A N/A N/A annotation split : N/A 0 N/A N/A N/A - annotation N/A N/A annotation N/A N/A N/A annotation split - N/A 0 N/A N/A N/A / annotation N/A N/A annotation N/A N/A N/A annotation split / N/A 0 N/A N/A N/A N/A self _morpheme_element set meaning annotation N/A N/A N/A N/A N/A self _annotation_mapper add_to_missing N/A N/A poioapi data TIER_GLOSS token N/A _split_destination_tags N/A N/A self tags N/A N/A N/A tokens N/A N/A re split N/A N/A poioapi mapper tag_separators tags N/A token tokens N/A N/A N/A token N/A N/A N/A N/A N/A ET SubElement N/A self _morpheme_element gloss text token N/A _write_translations N/A N/A self converter phrase N/A N/A N/A  Method to build the word nodes of the XML.

            Parameters
            ----------
            converter : poioapi.annotationgraph.AnnotationGraph
                Converter object from Poio API.
            phrase : graf.Node
                The parent node of the words
         N/A translation_annotations N/A N/A marker N/A N/A N/A converter tier_mapper tier_labels N/A N/A poioapi data TIER_TRANSLATION N/A N/A N/A N/A translation_annotations extend N/A N/A converter annotations_for_tier marker phrase N/A N/A N/A len translation_annotations 1 N/A N/A N/A N/A N/A ET SubElement N/A self _phrase_element translation text N/A N/A converter annotation_value_for_annotation N/A translation_annotations N/A 0 N/A N/A N/A N/A ET SubElement N/A self _phrase_element translation N/A write_xml N/A N/A self root outputfile pretty_print N/A True N/A N/A Write the final Typecraft XML file.

        Parameters
        ----------
        root : ElementTree
            The root Typecraft element.
        outputfile : str
            The output file name.
        pretty_print : boolean
            Boolean to set the XML pretty print.

         N/A pretty_print N/A N/A doc N/A N/A minidom parseString N/A tostring root N/A text_re N/A N/A re compile >\n\s+([^<>\s].*?)\n\s+</ N/A re DOTALL N/A pretty_xml N/A N/A text_re sub >\g<1></ N/A N/A doc toprettyxml indent N/A file N/A N/A codecs open outputfile wb encoding utf-8 N/A N/A N/A file write pretty_xml N/A N/A N/A file close N/A N/A tree N/A N/A ET ElementTree root N/A N/A N/A tree write outputfile N/A _string_to_milliseconds N/A N/A self value N/A N/A N/A Convert a string to milliseconds. Time unit
        for the time values in Typecaft.

        Parameters
        ----------
        time_node : str
            The value to convert.

        Returns
        -------
        offset : int
            The offset value.

         N/A N/A value 0 N/A N/A 0 N/A time_start N/A N/A value split . N/A microseconds N/A int N/A time_start N/A 1 N/A N/A N/A x N/A N/A time strptime N/A time_start N/A 0 %H:%M:%S N/A offset N/A N/A int N/A N/A N/A N/A datetime timedelta hours N/A x tm_hour minutes N/A x tm_min seconds N/A x tm_sec seconds 1000 microseconds N/A N/A N/A ValueError N/A N/A offset N/A N/A N/A int N/A time_start N/A 0 1000 microseconds N/A offset N/A _next_text_id N/A N/A self N/A N/A N/A Increment the text id.

         N/A current_id N/A str N/A N/A int N/A self _current_text_id 1 N/A N/A self _current_text_id current_id N/A N/A str current_id N/A _next_phrase_id N/A N/A self N/A N/A N/A Increment the phrase id.

         N/A current_id N/A str N/A N/A int N/A self _current_phrase_id 1 N/A N/A self _current_phrase_id current_id N/A N/A str current_id N/A missing_tags N/A N/A self outputfile annotation_graph additional_map_path N/A N/A N/A  Method to check if all the poses and glosses are mapped in the external mapping provided.
            Any non-mapped gloss and/or pos tags are stored for outputting the JSON file.
            If no missing tags are found, the objects in the output file will be empty.
            If no tag mapping is passed (e.g. running the converter without the -t flag) then the result will
            contain all the tags.
         N/A pos_nodes N/A N/A marker N/A N/A N/A annotation_graph tier_mapper tier_labels N/A N/A poioapi data TIER_POS N/A N/A N/A N/A pos_nodes extend N/A N/A annotation_graph nodes_for_tier marker N/A gloss_nodes N/A N/A marker N/A N/A N/A annotation_graph tier_mapper tier_labels N/A N/A poioapi data TIER_GLOSS N/A N/A N/A N/A gloss_nodes extend N/A N/A annotation_graph nodes_for_tier marker N/A N/A N/A self _annotation_mapper None N/A N/A N/A self _annotation_mapper N/A N/A N/A poioapi mapper AnnotationMapper N/A annotation_graph source_type N/A N/A poioapi data TYPECRAFT N/A N/A N/A N/A self _annotation_mapper load_mappings additional_map_path N/A node pos_nodes N/A N/A annotation N/A N/A annotation_graph annotation_value_for_node node N/A N/A N/A any N/A N/A c annotation N/A c ()/\.-?* N/A N/A mapping N/A N/A N/A self _annotation_mapper validate_tag N/A N/A poioapi data TIER_POS annotation N/A N/A mapping None N/A N/A N/A N/A N/A self _annotation_mapper add_to_missing N/A N/A poioapi data TIER_POS annotation N/A node gloss_nodes N/A N/A annotation N/A N/A annotation_graph annotation_value_for_node node N/A splitter . N/A N/A N/A ? annotation N/A annotation ?IPFV N/A N/A N/A N/A : annotation N/A N/A splitter : N/A token N/A N/A annotation split splitter N/A N/A gloss_list N/A N/A N/A self _annotation_mapper validate_tag N/A N/A poioapi data TIER_GLOSS N/A N/A token strip - N/A N/A N/A gloss_list None N/A N/A N/A token isupper N/A N/A N/A N/A token strip - isdigit N/A N/A N/A N/A N/A self _annotation_mapper add_to_missing N/A N/A poioapi data TIER_GLOSS N/A N/A token strip - N/A N/A N/A N/A self _annotation_mapper export_missing_tags outputfile N/A N/A