Functions
mycroft.util.lang.parse_sv Namespace Reference

Functions

def extract_datetime_sv (string, currentDate, default_time)
 
def extractnumber_sv (text)
 
def is_fractional_sv (input_str)
 
def normalize_sv (text, remove_articles)
 

Function Documentation

def mycroft.util.lang.parse_sv.extract_datetime_sv (   string,
  currentDate,
  default_time 
)

Definition at line 127 of file parse_sv.py.

def mycroft.util.lang.parse_sv.extractnumber_sv (   text)
This function prepares the given text for parsing by making
numbers consistent, getting rid of contractions, etc.
Args:
    text (str): the string to normalize
Returns:
    (int) or (float): The value of extracted number

Definition at line 22 of file parse_sv.py.

def mycroft.util.lang.parse_sv.is_fractional_sv (   input_str)
This function takes the given text and checks if it is a fraction.

Args:
    input_str (str): the string to check if fractional
Returns:
    (bool) or (float): False if not a fraction, otherwise the fraction

Definition at line 728 of file parse_sv.py.

def mycroft.util.lang.parse_sv.normalize_sv (   text,
  remove_articles 
)
English string normalization 

Definition at line 760 of file parse_sv.py.



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