Functions | Variables
mycroft.util.lang.parse_es Namespace Reference

Functions

def es_number_parse (words, i)
 
def extract_datetime_es (input_str, currentDate=None, default_time=None)
 
def extractnumber_es (text)
 
def get_gender_es (word, raw_string="")
 
def isFractional_es (input_str)
 
def normalize_es (text, remove_articles)
 

Variables

list es_articles = ["el", "la", "los", "las"]
 
dictionary es_numbers
 

Function Documentation

def mycroft.util.lang.parse_es.es_number_parse (   words,
  i 
)

Definition at line 260 of file parse_es.py.

def mycroft.util.lang.parse_es.extract_datetime_es (   input_str,
  currentDate = None,
  default_time = None 
)

Definition at line 363 of file parse_es.py.

def mycroft.util.lang.parse_es.extractnumber_es (   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 129 of file parse_es.py.

def mycroft.util.lang.parse_es.get_gender_es (   word,
  raw_string = "" 
)

Definition at line 1120 of file parse_es.py.

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

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

Definition at line 96 of file parse_es.py.

def mycroft.util.lang.parse_es.normalize_es (   text,
  remove_articles 
)
Spanish string normalization 

Definition at line 336 of file parse_es.py.

Variable Documentation

list mycroft.util.lang.parse_es.es_articles = ["el", "la", "los", "las"]

Definition at line 27 of file parse_es.py.

dictionary mycroft.util.lang.parse_es.es_numbers

Definition at line 29 of file parse_es.py.



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