hal.strings package¶
Submodules¶
hal.strings.models module¶
String models
-
class
hal.strings.models.String(string)[source]¶ Bases:
objectModels string
-
is_well_formatted()[source]¶ Checks if string is good formatted
Returns: True iff string is good formatted
-
remove_all(token)[source]¶ Removes all occurrences of token
Parameters: token – string to remove Returns: input without token
-
remove_control_chars()[source]¶ Removes controls chars from text
Returns: input except controls chars
-
hal.strings.utils module¶
Typical operations on strings made easy
-
hal.strings.utils.get_average_length_of_string(strings)[source]¶ Computes average length of words
Parameters: strings – list of words Returns: Average length of word on list