src.dackar.text_processing.Abbreviation ======================================= .. py:module:: src.dackar.text_processing.Abbreviation .. autoapi-nested-parse:: Created on March, 2024 @author: wangc, mandd Attributes ---------- .. autoapisummary:: src.dackar.text_processing.Abbreviation.logger src.dackar.text_processing.Abbreviation.not_acronyms Classes ------- .. autoapisummary:: src.dackar.text_processing.Abbreviation.Abbreviation Module Contents --------------- .. py:data:: logger .. py:data:: not_acronyms :value: ['was', 'for', 'by', 'me', 'our', 'is', 'he', 'she', 'they', 'him', 'his', 'her', 'them', 'my',... .. py:class:: Abbreviation Bases: :py:obj:`object` Class to handle abbreviations .. py:attribute:: type :value: 'Abbreviation' .. py:attribute:: name :value: 'Abbreviation' .. py:method:: abbreviationSub(text) Expands the abbreviations in text :param text: string, the text to expand :returns: string, the text with abbreviations expanded :rtype: expandedText .. py:method:: updateAbbreviation(abbrDict, reset=True) Update existing abbreviation dictionary :param abbrDict: dict, provided abbreviation dictionary :param reset: boot, True if reset the existing abbreviation dictionary .. py:method:: getAbbreviation() Get the abbreviation dict