src.dackar.text_processing.AbbrExpander ======================================= .. py:module:: src.dackar.text_processing.AbbrExpander .. autoapi-nested-parse:: Created on October, 2022 @author: wangc, mandd Classes ------- .. autoapisummary:: src.dackar.text_processing.AbbrExpander.AbbrExpander Module Contents --------------- .. py:class:: AbbrExpander(abbreviationsFilename, checkerType='autocorrect', abbrType='mixed') Bases: :py:obj:`object` Class to expand abbreviations .. py:attribute:: abbrType :value: 'mixed' .. py:attribute:: checkerType :value: 'autocorrect' .. py:attribute:: abbrList .. py:attribute:: preprocessorList :value: ['hyphenated_words', 'whitespace', 'numerize'] .. py:attribute:: preprocess .. py:attribute:: checker .. py:attribute:: abbrDict .. py:method:: abbrProcess(text, splitToList=False) Expands the abbreviations in text :param text: string, the text to expand :param splitToList: bool, True if splitting the text into sentences, default is False :returns: string, the text with abbreviations expanded :rtype: expandedText