USL Object Reference

ieml.usl.get_index(s, dic)
ieml.usl.int2base(i, max=30, characters=['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'])

USL Object Structure

class ieml.usl.usl.USL(*args, **kwargs)

Bases: ieml.commons.DecoratedComponent

__bool__()
__contains__(item)
__eq__(other)

Return self==value.

__hash__()

Since the IEML string for a script is its definition, it can be used as a hash

__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

__len__()
__lt__(other)

Return self<value.

__module__ = 'ieml.usl.usl'
__str__()

Return str(self).

cardinal
check()
do_lt(other)
empty
is_singular
iter_structure()
iter_structure_path(flexion=False) → Iterable[Tuple[UslPath, USL]]
iter_structure_path_by_script_ss(flexion=False) → Iterable[Tuple[UslPath, ieml.dictionary.script.script.Script]]
iter_structure_path_by_type(_type=<class 'ieml.dictionary.script.script.Script'>, flexion=False)
morphemes
singular_sequences
singular_sequences_set
syntactic_level = 0
ieml.usl.usl.usl(arg: Union[str, ieml.dictionary.script.script.Script, ieml.usl.usl.USL, Iterable[Tuple[UslPath, Union[ieml.usl.usl.USL, ieml.dictionary.script.script.Script]]]]) → ieml.usl.usl.USL
Cast argument to an USL type, depending on the argument type.
  • If argument is a string, it is parsed by ieml.usl.parser.IEMLParser.parse
  • if argument is a ieml.dictionary.Script, the returned object is a ieml.usl.polymorpheme.PolyMorpheme with the argument as the constant.
  • if argument is an ieml.usl.usl.USL, the argument is returned
  • if argument is a list of (ieml.usl.decoration.path.UslPath, ieml.usl.usl.USL)
Parameters:arg (Union[str, Script, USL, Iterable[Tuple['UslPath', Union[USL, Script]]]]) –
Returns:an ieml.usl.usl.USL
class ieml.usl.polymorpheme.PolyMorpheme(constant: List[ieml.dictionary.script.script.Script] = (), groups=())

Bases: ieml.usl.usl.USL

__init__(constant: List[ieml.dictionary.script.script.Script] = (), groups=())

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'ieml.usl.polymorpheme'
check()
do_lt(other)
empty
iter_structure()
iter_structure_path(flexion=False)
morphemes
syntactic_level = 1
ieml.usl.polymorpheme.check_polymorpheme(ms)
ieml.usl.polymorpheme.compute_PM_singular_sequences(constants, groups)
class ieml.usl.lexeme.Lexeme(pm_flexion: ieml.usl.polymorpheme.PolyMorpheme, pm_content: ieml.usl.polymorpheme.PolyMorpheme)

Bases: ieml.usl.usl.USL

A lexeme without the PA of the position on the tree (position independant lexeme)

__init__(pm_flexion: ieml.usl.polymorpheme.PolyMorpheme, pm_content: ieml.usl.polymorpheme.PolyMorpheme)

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'ieml.usl.lexeme'
check()
do_lt(other)
empty
iter_structure()
iter_structure_path(flexion=False)
morphemes
syntactic_level = 2
ieml.usl.lexeme.check_lexeme(lexeme, sfun=None)
class ieml.usl.syntagmatic_function.DependantQualitySyntagmaticFunction(actor: Any, dependant: Union[DependantQualitySyntagmaticFunction, ieml.usl.syntagmatic_function.JunctionSyntagmaticFunction] = None, independant: Union[ieml.usl.syntagmatic_function.IndependantQualitySyntagmaticFunction, ieml.usl.syntagmatic_function.JunctionSyntagmaticFunction] = None, **kwargs)

Bases: ieml.usl.syntagmatic_function.SyntagmaticFunction

__init__(actor: Any, dependant: Union[DependantQualitySyntagmaticFunction, ieml.usl.syntagmatic_function.JunctionSyntagmaticFunction] = None, independant: Union[ieml.usl.syntagmatic_function.IndependantQualitySyntagmaticFunction, ieml.usl.syntagmatic_function.JunctionSyntagmaticFunction] = None, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'ieml.usl.syntagmatic_function'
check(X, check_X, sfun_type)
class ieml.usl.syntagmatic_function.IndependantQualitySyntagmaticFunction(actor: Any)

Bases: ieml.usl.syntagmatic_function.SyntagmaticFunction

__init__(actor: Any)

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'ieml.usl.syntagmatic_function'
class ieml.usl.syntagmatic_function.JunctionSyntagmaticFunction(junction_link: ieml.dictionary.script.script.Script, children: List[ieml.usl.syntagmatic_function.SyntagmaticFunction])

Bases: ieml.usl.syntagmatic_function.SyntagmaticFunction

__init__(junction_link: ieml.dictionary.script.script.Script, children: List[ieml.usl.syntagmatic_function.SyntagmaticFunction])

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'ieml.usl.syntagmatic_function'
check(X: Type[CT_co], check_X, sfun_type)
class ieml.usl.syntagmatic_function.ProcessSyntagmaticFunction(actor: Any, valence: ieml.dictionary.script.script.Script, actants: Dict[ieml.dictionary.script.script.Script, ieml.usl.syntagmatic_function.DependantQualitySyntagmaticFunction])

Bases: ieml.usl.syntagmatic_function.SyntagmaticFunction

__init__(actor: Any, valence: ieml.dictionary.script.script.Script, actants: Dict[ieml.dictionary.script.script.Script, ieml.usl.syntagmatic_function.DependantQualitySyntagmaticFunction])

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'ieml.usl.syntagmatic_function'
check(X: Type[CT_co], check_X, sfun_type)
class ieml.usl.syntagmatic_function.SyntagmaticFunction(actor: Any, _actors: Dict[List[ieml.dictionary.script.script.Script], SyntagmaticFunction])

Bases: object

__dict__ = mappingproxy({'__module__': 'ieml.usl.syntagmatic_function', '__init__': <function SyntagmaticFunction.__init__>, '__eq__': <function SyntagmaticFunction.__eq__>, '__lt__': <function SyntagmaticFunction.__lt__>, 'role_in': <function SyntagmaticFunction.role_in>, 'empty': <property object>, 'get': <function SyntagmaticFunction.get>, 'get_paradigm': <function SyntagmaticFunction.get_paradigm>, 'iter_structure': <function SyntagmaticFunction.iter_structure>, 'iter_structure_path': <function SyntagmaticFunction.iter_structure_path>, 'role_is_junction': <function SyntagmaticFunction.role_is_junction>, 'get_context_role_prefix': <staticmethod object>, 'render_with_context': <function SyntagmaticFunction.render_with_context>, 'get_role_expansion': <function SyntagmaticFunction.get_role_expansion>, 'as_list': <function SyntagmaticFunction.as_list>, 'from_list': <staticmethod object>, 'check': <function SyntagmaticFunction.check>, 'singular_sequences': <function SyntagmaticFunction.singular_sequences>, '__dict__': <attribute '__dict__' of 'SyntagmaticFunction' objects>, '__weakref__': <attribute '__weakref__' of 'SyntagmaticFunction' objects>, '__doc__': None, '__hash__': None})
__eq__(other)

Return self==value.

__hash__ = None
__init__(actor: Any, _actors: Dict[List[ieml.dictionary.script.script.Script], SyntagmaticFunction])

Initialize self. See help(type(self)) for accurate signature.

__lt__(other)

Return self<value.

__module__ = 'ieml.usl.syntagmatic_function'
__weakref__

list of weak references to the object (if defined)

as_list(context_type) → List[Tuple[List[ieml.dictionary.script.script.Script], Any]]
check(X: Type[CT_co], check_X, sfun_type)
empty
static from_list(l: List[Tuple[List[ieml.dictionary.script.script.Script], Any]]) → Tuple[Type[ieml.usl.syntagmatic_function.SyntagmaticFunction], ieml.usl.syntagmatic_function.SyntagmaticFunction]
get(role: ieml.usl.syntagmatic_function.SyntagmaticRole, ignore_prefix=False, ignore_process_valence=False) → Any
static get_context_role_prefix(context)
get_paradigm(role: ieml.usl.syntagmatic_function.SyntagmaticRole) → List[Any]
get_role_expansion(role: ieml.usl.syntagmatic_function.SyntagmaticRole, ignore_prefix=())
iter_structure()
iter_structure_path(context, focus_role=None)
render_with_context(role: ieml.usl.syntagmatic_function.SyntagmaticRole = None, context=None)
role_in(tgt: ieml.usl.syntagmatic_function.SyntagmaticFunction)

return the role of the tgt syntagmatic function occupy in self.

role_is_junction(role: ieml.usl.syntagmatic_function.SyntagmaticRole = None)
singular_sequences(context_type)
class ieml.usl.syntagmatic_function.SyntagmaticRole(constant: List[ieml.dictionary.script.script.Script] = ())

Bases: object

__dict__ = mappingproxy({'__module__': 'ieml.usl.syntagmatic_function', '__init__': <function SyntagmaticRole.__init__>, '__str__': <function SyntagmaticRole.__str__>, '__lt__': <function SyntagmaticRole.__lt__>, '__eq__': <function SyntagmaticRole.__eq__>, '__hash__': <function SyntagmaticRole.__hash__>, 'is_junction_prefix': <function SyntagmaticRole.is_junction_prefix>, '__dict__': <attribute '__dict__' of 'SyntagmaticRole' objects>, '__weakref__': <attribute '__weakref__' of 'SyntagmaticRole' objects>, '__doc__': None})
__eq__(other)

Return self==value.

__hash__()

Since the IEML string for a script is its definition, it can be used as a hash

__init__(constant: List[ieml.dictionary.script.script.Script] = ())

Initialize self. See help(type(self)) for accurate signature.

__lt__(other)

Return self<value.

__module__ = 'ieml.usl.syntagmatic_function'
__str__()

Return str(self).

__weakref__

list of weak references to the object (if defined)

is_junction_prefix(role: ieml.usl.syntagmatic_function.SyntagmaticRole)

if self is the junction prefix of the role

class ieml.usl.word.Word(syntagmatic_fun: ieml.usl.syntagmatic_function.SyntagmaticFunction, role: ieml.usl.syntagmatic_function.SyntagmaticRole, context_type: Type[ieml.usl.syntagmatic_function.SyntagmaticFunction])

Bases: ieml.usl.usl.USL

__init__(syntagmatic_fun: ieml.usl.syntagmatic_function.SyntagmaticFunction, role: ieml.usl.syntagmatic_function.SyntagmaticRole, context_type: Type[ieml.usl.syntagmatic_function.SyntagmaticFunction])

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'ieml.usl.word'
check()
do_lt(other)
empty
iter_structure()
iter_structure_path(flexion=False)
morphemes
syntactic_level = 3
ieml.usl.word.check_word(w: ieml.usl.word.Word)
ieml.usl.word.simplify_word(w: ieml.usl.word.Word) → ieml.usl.word.Word

remove empty leaves

Table Structure

class ieml.usl.table.UslTable2D(usl: ieml.usl.usl.USL, columns: ieml.usl.decoration.path.UslPath, rows: ieml.usl.decoration.path.UslPath = None)

Bases: object

__dict__ = mappingproxy({'__module__': 'ieml.usl.table', '__init__': <function UslTable2D.__init__>, 'columns': <ieml.commons.cached_property object>, 'rows': <ieml.commons.cached_property object>, 'column_paths_variation': <ieml.commons.cached_property object>, 'column_paths_constant': <ieml.commons.cached_property object>, 'row_paths_constant': <ieml.commons.cached_property object>, 'row_paths_variation': <ieml.commons.cached_property object>, 'constant_paths': <ieml.commons.cached_property object>, 'cells': <ieml.commons.cached_property object>, '__dict__': <attribute '__dict__' of 'UslTable2D' objects>, '__weakref__': <attribute '__weakref__' of 'UslTable2D' objects>, '__doc__': None})
__init__(usl: ieml.usl.usl.USL, columns: ieml.usl.decoration.path.UslPath, rows: ieml.usl.decoration.path.UslPath = None)

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'ieml.usl.table'
__weakref__

list of weak references to the object (if defined)

cells
column_paths_constant
column_paths_variation
columns
constant_paths
row_paths_constant
row_paths_variation
rows
ieml.usl.table.enumerate_partitions(usl: ieml.usl.usl.USL)
class ieml.usl.variation.PolyMorphemeVariation(items, multiplicity)

Bases: ieml.usl.variation.Variation

__init__(items, multiplicity)

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'ieml.usl.variation'
check()
do_lt(other)
empty
iter_structure()
iter_structure_path(flexion=False)
morphemes
class ieml.usl.variation.Variation(*args, **kwargs)

Bases: ieml.usl.usl.USL

__module__ = 'ieml.usl.variation'

USL Parser

ieml.usl.parser.lexer.get_lexer(module=None)
class ieml.usl.parser.parser.IEMLParser(dictionary=None)

Bases: object

__dict__ = mappingproxy({'__module__': 'ieml.usl.parser.parser', 'tokens': ('MORPHEME', 'OLD_MORPHEME_GRAMMATICAL_CLASS', 'LPAREN', 'RPAREN', 'RCHEVRON', 'LBRACKET', 'RBRACKET', 'GROUP_MULTIPLICITY', 'EXCLAMATION_MARK', 'LITERAL', 'USL_PATH', 'DECORATION_VALUE'), 'lock': <unlocked _thread.lock object>, '__init__': <function IEMLParser.__init__>, 'parse': <function IEMLParser.parse>, 'p_ieml_proposition': <function IEMLParser.p_ieml_proposition>, 'p_usl': <function IEMLParser.p_usl>, 'p_instanced_usl': <function IEMLParser.p_instanced_usl>, 'p_morpheme': <function IEMLParser.p_morpheme>, 'p_morpheme_sum': <function IEMLParser.p_morpheme_sum>, 'p_group': <function IEMLParser.p_group>, 'p_group_list': <function IEMLParser.p_group_list>, 'p_poly_morpheme': <function IEMLParser.p_poly_morpheme>, 'p_lexeme': <function IEMLParser.p_lexeme>, 'p_positioned_lexeme': <function IEMLParser.p_positioned_lexeme>, 'p_lexeme_list': <function IEMLParser.p_lexeme_list>, 'p_word': <function IEMLParser.p_word>, 'p_decoration_list': <function IEMLParser.p_decoration_list>, 'p_decoration': <function IEMLParser.p_decoration>, 'p_error': <function IEMLParser.p_error>, '__dict__': <attribute '__dict__' of 'IEMLParser' objects>, '__weakref__': <attribute '__weakref__' of 'IEMLParser' objects>, '__doc__': None})
__init__(dictionary=None)

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'ieml.usl.parser.parser'
__weakref__

list of weak references to the object (if defined)

lock = <unlocked _thread.lock object>
p_decoration(p)

decoration : LBRACKET USL_PATH DECORATION_VALUE RBRACKET

p_decoration_list(p)

decoration_list : decoration_list decoration | decoration

p_error(p)
p_group(p)

group : GROUP_MULTIPLICITY LPAREN morpheme_sum RPAREN

p_group_list(p)

group_list : group group_list | group

p_ieml_proposition(p)

proposition : morpheme | usl | instanced_usl

p_instanced_usl(p)

instanced_usl : usl decoration_list

p_lexeme(p)

lexeme : LPAREN poly_morpheme RPAREN LPAREN poly_morpheme RPAREN LPAREN poly_morpheme RPAREN | LPAREN RPAREN LPAREN poly_morpheme RPAREN LPAREN poly_morpheme RPAREN | LPAREN RPAREN LPAREN RPAREN LPAREN poly_morpheme RPAREN | LPAREN poly_morpheme RPAREN LPAREN poly_morpheme RPAREN | LPAREN RPAREN LPAREN poly_morpheme RPAREN | LPAREN poly_morpheme RPAREN | LPAREN RPAREN

p_lexeme_list(p)

lexeme_list : lexeme_list RCHEVRON EXCLAMATION_MARK positioned_lexeme | lexeme_list RCHEVRON positioned_lexeme | EXCLAMATION_MARK positioned_lexeme | positioned_lexeme

p_morpheme(p)

morpheme : MORPHEME

p_morpheme_sum(p)

morpheme_sum : morpheme_sum morpheme | morpheme

p_poly_morpheme(p)

poly_morpheme : morpheme_sum group_list | morpheme_sum | group_list

p_positioned_lexeme(p)

positioned_lexeme : morpheme_sum lexeme | lexeme

p_usl(p)

usl : poly_morpheme | lexeme | word

p_word(p)

word : LBRACKET OLD_MORPHEME_GRAMMATICAL_CLASS lexeme_list RBRACKET | LBRACKET lexeme_list RBRACKET

parse(s, factorize_script=False)

Parses the input string, and returns a reference to the created AST’s root

tokens = ('MORPHEME', 'OLD_MORPHEME_GRAMMATICAL_CLASS', 'LPAREN', 'RPAREN', 'RCHEVRON', 'LBRACKET', 'RBRACKET', 'GROUP_MULTIPLICITY', 'EXCLAMATION_MARK', 'LITERAL', 'USL_PATH', 'DECORATION_VALUE')
class ieml.usl.parser.parser.IEMLParserSingleton

Bases: type

__call__(*args, **kwargs)

Call self as a function.

__module__ = 'ieml.usl.parser.parser'

Path Parser

exception ieml.usl.decoration.path.DeferenceError

Bases: KeyError

__module__ = 'ieml.usl.decoration.path'
__weakref__

list of weak references to the object (if defined)

class ieml.usl.decoration.path.FlexionPath(morpheme, child=None)

Bases: ieml.usl.decoration.path.UslPath

USL_TYPE

alias of ieml.usl.polymorpheme.PolyMorpheme

__init__(morpheme, child=None)

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'ieml.usl.decoration.path'
as_constant(u=None)
classmethod build_usl_from_path_to_node(path_to_node)
clone(use_child=False, child=None)
without_morpheme()
class ieml.usl.decoration.path.GroupIndex

Bases: ieml.commons.OrderedEnum

An enumeration.

CONSTANT = -1
GROUP_0 = 0
GROUP_1 = 1
GROUP_2 = 2
__module__ = 'ieml.usl.decoration.path'
class ieml.usl.decoration.path.LexemeIndex

Bases: ieml.commons.OrderedEnum

An enumeration.

CONTENT = 0
FLEXION = 1
__module__ = 'ieml.usl.decoration.path'
class ieml.usl.decoration.path.LexemePath(index: ieml.usl.decoration.path.LexemeIndex, child=None)

Bases: ieml.usl.decoration.path.UslPath

USL_TYPE

alias of ieml.usl.lexeme.Lexeme

__init__(index: ieml.usl.decoration.path.LexemeIndex, child=None)

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'ieml.usl.decoration.path'
as_constant(u=None)
classmethod build_usl_from_path_to_node(path_to_node)
clone(use_child=False, child=None)
without_morpheme()
class ieml.usl.decoration.path.PolymorphemePath(group_idx: ieml.usl.decoration.path.GroupIndex, morpheme: ieml.dictionary.script.script.Script = None, multiplicity=None, child=None)

Bases: ieml.usl.decoration.path.UslPath

USL_TYPE

alias of ieml.usl.polymorpheme.PolyMorpheme

__init__(group_idx: ieml.usl.decoration.path.GroupIndex, morpheme: ieml.dictionary.script.script.Script = None, multiplicity=None, child=None)

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'ieml.usl.decoration.path'
as_constant(u=None)
classmethod build_usl_from_path_to_node(path_to_node)

path_to_node: dict PolymorphemePath -> Script # TODO handle multiplicity :param path_to_node: :return:

clone(use_child=False, child=None)
without_morpheme()
class ieml.usl.decoration.path.RolePath(role, has_focus=False, child=None)

Bases: ieml.usl.decoration.path.UslPath

USL_TYPE

alias of ieml.usl.word.Word

__init__(role, has_focus=False, child=None)

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'ieml.usl.decoration.path'
as_constant(u=None)
classmethod build_usl_from_path_to_node(path_to_node)
clone(use_child=False, child=None)
without_morpheme()
class ieml.usl.decoration.path.UslPath(child=None)

Bases: object

USL_TYPE

alias of ieml.usl.usl.USL

__dict__ = mappingproxy({'__module__': 'ieml.usl.decoration.path', 'USL_TYPE': <class 'ieml.usl.usl.USL'>, '__init__': <function UslPath.__init__>, '_deference': <function UslPath._deference>, 'has_prefix': <function UslPath.has_prefix>, '_has_prefix': <function UslPath._has_prefix>, 'as_constant': <function UslPath.as_constant>, 'without_morpheme': <function UslPath.without_morpheme>, 'concat': <function UslPath.concat>, 'remove_prefix': <function UslPath.remove_prefix>, 'tail': <property object>, 'deference': <function UslPath.deference>, 'contained': <function UslPath.contained>, '_to_str': <function UslPath._to_str>, '__str__': <function UslPath.__str__>, '_from_string': <staticmethod object>, 'from_string': <classmethod object>, '__eq__': <function UslPath.__eq__>, '__lt__': <function UslPath.__lt__>, '_do_eq': <function UslPath._do_eq>, '_do_lt': <function UslPath._do_lt>, '__hash__': <function UslPath.__hash__>, 'clone': <function UslPath.clone>, 'no_child_clone': <function UslPath.no_child_clone>, 'build_usl_from_path_to_node': <classmethod object>, 'is_constant_path': <property object>, '_is_constant_path': <property object>, 'split_tail': <function UslPath.split_tail>, '__dict__': <attribute '__dict__' of 'UslPath' objects>, '__weakref__': <attribute '__weakref__' of 'UslPath' objects>, '__doc__': None})
__eq__(other)

Return self==value.

__hash__()

Return hash(self).

__init__(child=None)

Initialize self. See help(type(self)) for accurate signature.

__lt__(other)

Return self<value.

__module__ = 'ieml.usl.decoration.path'
__str__()

Return str(self).

__weakref__

list of weak references to the object (if defined)

as_constant(u=None)
classmethod build_usl_from_path_to_node(path_to_node)
clone(use_child=False, child=None)
concat(suffix: ieml.usl.decoration.path.UslPath, force: bool = False) → ieml.usl.decoration.path.UslPath
contained(usl)
deference(usl: ieml.usl.usl.USL) → ieml.usl.usl.USL
classmethod from_string(string)
has_prefix(prefix: ieml.usl.decoration.path.UslPath)
is_constant_path
no_child_clone()
remove_prefix(prefix: ieml.usl.decoration.path.UslPath)
split_tail()
tail
without_morpheme()
ieml.usl.decoration.path.path(string) → ieml.usl.decoration.path.UslPath
ieml.usl.decoration.path.usl_from_path_values(paths_values)
ieml.usl.decoration.parser.lexer.get_lexer(module=None)
class ieml.usl.decoration.parser.parser.PathParser

Bases: object

__dict__ = mappingproxy({'__module__': 'ieml.usl.decoration.parser.parser', 'tokens': ('SEPARATOR', 'ROLE_TOKEN', 'ROLE_NAME', 'ROLE_MORPHEME', 'LEXEME_POSITION', 'POLYMORPHEME_POSITION', 'MORPHEME', 'MULTIPLICITY', 'EXCLAMATION_MARK'), 'lock': <unlocked _thread.lock object>, '__init__': <function PathParser.__init__>, 'parse': <function PathParser.parse>, 'p_path': <function PathParser.p_path>, 'p_role_path_list': <function PathParser.p_role_path_list>, 'p_role_path': <function PathParser.p_role_path>, 'p_lexeme_path': <function PathParser.p_lexeme_path>, 'p_flexion_path': <function PathParser.p_flexion_path>, 'p_polymorpheme_path': <function PathParser.p_polymorpheme_path>, 'p_error': <function PathParser.p_error>, '__dict__': <attribute '__dict__' of 'PathParser' objects>, '__weakref__': <attribute '__weakref__' of 'PathParser' objects>, '__doc__': None})
__init__()

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'ieml.usl.decoration.parser.parser'
__weakref__

list of weak references to the object (if defined)

lock = <unlocked _thread.lock object>
p_error(p)
p_flexion_path(p)

flexion_path : MORPHEME

p_lexeme_path(p)

lexeme_path : LEXEME_POSITION | LEXEME_POSITION SEPARATOR polymorpheme_path | LEXEME_POSITION SEPARATOR flexion_path

p_path(p)

path : SEPARATOR | SEPARATOR role_path | SEPARATOR lexeme_path | SEPARATOR flexion_path | SEPARATOR polymorpheme_path

p_polymorpheme_path(p)

polymorpheme_path : POLYMORPHEME_POSITION | POLYMORPHEME_POSITION MULTIPLICITY | POLYMORPHEME_POSITION SEPARATOR MORPHEME | POLYMORPHEME_POSITION MULTIPLICITY SEPARATOR MORPHEME

p_role_path(p)

role_path : ROLE_TOKEN SEPARATOR role_path_list | ROLE_TOKEN SEPARATOR EXCLAMATION_MARK role_path_list | ROLE_TOKEN SEPARATOR role_path_list SEPARATOR lexeme_path | ROLE_TOKEN SEPARATOR EXCLAMATION_MARK role_path_list SEPARATOR lexeme_path

p_role_path_list(p)

role_path_list : role_path_list MORPHEME | MORPHEME | role_path_list ROLE_NAME | ROLE_NAME

parse(s)
tokens = ('SEPARATOR', 'ROLE_TOKEN', 'ROLE_NAME', 'ROLE_MORPHEME', 'LEXEME_POSITION', 'POLYMORPHEME_POSITION', 'MORPHEME', 'MULTIPLICITY', 'EXCLAMATION_MARK')

Literals

class ieml.usl.decoration.instance.Decoration(path: ieml.usl.decoration.path.UslPath, value)

Bases: object

__dict__ = mappingproxy({'__module__': 'ieml.usl.decoration.instance', '__init__': <function Decoration.__init__>, 'apply': <function Decoration.apply>, '__str__': <function Decoration.__str__>, '__lt__': <function Decoration.__lt__>, '__eq__': <function Decoration.__eq__>, '__dict__': <attribute '__dict__' of 'Decoration' objects>, '__weakref__': <attribute '__weakref__' of 'Decoration' objects>, '__doc__': None, '__hash__': None})
__eq__(other)

Return self==value.

__hash__ = None
__init__(path: ieml.usl.decoration.path.UslPath, value)

Initialize self. See help(type(self)) for accurate signature.

__lt__(other)

Return self<value.

__module__ = 'ieml.usl.decoration.instance'
__str__()

Return str(self).

__weakref__

list of weak references to the object (if defined)

apply(u: ieml.commons.DecoratedComponent)
class ieml.usl.decoration.instance.InstancedUSL(u: ieml.usl.usl.USL, decorations: List[ieml.usl.decoration.instance.Decoration])

Bases: ieml.usl.usl.USL

__init__(u: ieml.usl.usl.USL, decorations: List[ieml.usl.decoration.instance.Decoration])

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'ieml.usl.decoration.instance'
__str__()

Return str(self).

check()
do_lt(other)
empty
static from_usl(u: ieml.usl.usl.USL)
iter_structure()
iter_structure_path(flexion=False)
static list_decorations(u: ieml.usl.usl.USL, flexion=False)
morphemes
syntactic_level = 10
class ieml.usl.decoration.instance.LiteralContext

Bases: object

__dict__ = mappingproxy({'__module__': 'ieml.usl.decoration.instance', '__init__': <function LiteralContext.__init__>, '__enter__': <function LiteralContext.__enter__>, '__exit__': <function LiteralContext.__exit__>, 'push': <function LiteralContext.push>, '__dict__': <attribute '__dict__' of 'LiteralContext' objects>, '__weakref__': <attribute '__weakref__' of 'LiteralContext' objects>, '__doc__': None})
__enter__()
__exit__(exc_type, exc_val, exc_tb)
__init__()

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'ieml.usl.decoration.instance'
__weakref__

list of weak references to the object (if defined)

push(u)
ieml.usl.decoration.instance.literal_context()