Functions | |
| def | extract_datetime_pt (input_str, currentDate, default_time) |
| def | extractnumber_pt (text) |
| def | get_gender_pt (word, raw_string="") |
| def | isFractional_pt (input_str) |
| def | normalize_pt (text, remove_articles) |
| def | pt_number_parse (words, i) |
| def | pt_pruning (text, symbols=True, accents=True, agressive=True) |
| def mycroft.util.lang.parse_pt.extract_datetime_pt | ( | input_str, | |
| currentDate, | |||
| default_time | |||
| ) |
Definition at line 309 of file parse_pt.py.
| def mycroft.util.lang.parse_pt.extractnumber_pt | ( | 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 64 of file parse_pt.py.
| def mycroft.util.lang.parse_pt.get_gender_pt | ( | word, | |
raw_string = "" |
|||
| ) |
Definition at line 1125 of file parse_pt.py.
| def mycroft.util.lang.parse_pt.isFractional_pt | ( | 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 31 of file parse_pt.py.
| def mycroft.util.lang.parse_pt.normalize_pt | ( | text, | |
| remove_articles | |||
| ) |
PT string normalization
Definition at line 271 of file parse_pt.py.
| def mycroft.util.lang.parse_pt.pt_number_parse | ( | words, | |
| i | |||
| ) |
Definition at line 195 of file parse_pt.py.
| def mycroft.util.lang.parse_pt.pt_pruning | ( | text, | |
symbols = True, |
|||
accents = True, |
|||
agressive = True |
|||
| ) |
Definition at line 1093 of file parse_pt.py.