Public Member Functions | |
def | __bool__ (self) |
def | __init__ |
def | __repr__ (self) |
def | __setattr__ (self, key, value) |
def | __str__ (self) |
def | end_index (self) |
def | start_index (self) |
def | text (self) |
Public Attributes | |
tokens | |
value | |
Similar to _Token, this class is used in number parsing. Once we've found a number in a string, this class contains all the info about the value, and where it came from in the original text. In other words, it is the text, and the number that can replace it in the string.
Definition at line 101 of file parse_en.py.
def mycroft.util.lang.parse_en._ReplaceableNumber.__init__ | ( | self, | |
value, | |||
tokens | |||
) |
Definition at line 111 of file parse_en.py.
def mycroft.util.lang.parse_en._ReplaceableNumber.__bool__ | ( | self | ) |
Definition at line 115 of file parse_en.py.
def mycroft.util.lang.parse_en._ReplaceableNumber.__repr__ | ( | self | ) |
Definition at line 141 of file parse_en.py.
def mycroft.util.lang.parse_en._ReplaceableNumber.__setattr__ | ( | self, | |
key, | |||
value | |||
) |
Definition at line 130 of file parse_en.py.
def mycroft.util.lang.parse_en._ReplaceableNumber.__str__ | ( | self | ) |
Definition at line 138 of file parse_en.py.
def mycroft.util.lang.parse_en._ReplaceableNumber.end_index | ( | self | ) |
Definition at line 123 of file parse_en.py.
def mycroft.util.lang.parse_en._ReplaceableNumber.start_index | ( | self | ) |
Definition at line 119 of file parse_en.py.
def mycroft.util.lang.parse_en._ReplaceableNumber.text | ( | self | ) |
Definition at line 127 of file parse_en.py.
mycroft.util.lang.parse_en._ReplaceableNumber.tokens |
Definition at line 113 of file parse_en.py.
mycroft.util.lang.parse_en._ReplaceableNumber.value |
Definition at line 112 of file parse_en.py.