relex.utils package

Submodules

relex.utils.list_to_file module

relex.utils.output_to_file module

relex.utils.punctuation module

relex.utils.punctuation.remove_punctuation(string)

method to remove punctuation from a given string. It traverses the given string and replaces the punctuation marks with null

Parameters:string – string to remove punctuation from
relex.utils.punctuation.replace_punctuation(string)

method to remove punctuation from a given string. It traverses the given string and replaces the punctuation marks with comma (,)

Parameters:string – string to replace punctuation from

relex.utils.read_from_file module

relex.utils.read_from_file.read_from_file(file)

Reads a file and returns its contents as a list

Parameters:file – path to file that will be read