lux.processor.Parser.Parser¶
-
class
lux.processor.Parser.
Parser
[source]¶ The parser takes in the user’s input specifications (with string description fields), then generates the Lux internal specification through lux.Clause.
-
__init__
()¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
Initialize self. parse
(intent, str]])Given the string description from a list of input Clauses (intent), assign the appropriate clause.attribute, clause.filter_op, and clause.value. -
static
parse
(intent: List[Union[lux.vis.Clause.Clause, str]]) → List[lux.vis.Clause.Clause][source]¶ Given the string description from a list of input Clauses (intent), assign the appropriate clause.attribute, clause.filter_op, and clause.value.
Parameters: intent (List[Clause]) – Underspecified list of lux.Clause objects. Returns: Parsed list of lux.Clause objects. Return type: List[Clause]
-