query

knowledge.query

Functions

Name Description
convert_greek_to_latin Converts Greek letters and the micro sign (µ) in the input text to their corresponding Latin names.
flatten_list Recursively flattens a list of lists.

convert_greek_to_latin

knowledge.query.convert_greek_to_latin(text)

Converts Greek letters and the micro sign (µ) in the input text to their corresponding Latin names.

Args: text (str): The input text that may contain Greek letters or the micro sign.

Returns: str: The text with all Greek letters and the micro sign replaced by their Latin names.

flatten_list

knowledge.query.flatten_list(nested_list)

Recursively flattens a list of lists.

Parameters

Name Type Description Default
nested_list list A list that may contain nested lists. required

Returns

Name Type Description
list List[Any] A flattened list with all elements from nested lists.