Public Member Functions | Public Attributes | List of all members
mycroft.util.lang.parse_en._ReplaceableNumber Class Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

def mycroft.util.lang.parse_en._ReplaceableNumber.__init__ (   self,
  value,
  tokens 
)

Definition at line 111 of file parse_en.py.

Member Function Documentation

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.

Member Data Documentation

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.


The documentation for this class was generated from the following file:


mycroft_ros
Author(s):
autogenerated on Mon Apr 26 2021 02:35:41