Create ThesaurusΒΆ

Example

>>> import sys
>>> from io import StringIO
>>> # Redirect stderr to capture output
>>> original_stderr = sys.stderr
>>> sys.stderr = StringIO()
>>> # Create thesaurus
>>> from techminer2.thesaurus.abbreviations import InitializeThesaurus
>>> InitializeThesaurus(root_directory="examples/fintech/", use_colorama=False).run()
>>> # Capture and print stderr output
>>> output = sys.stderr.getvalue()
>>> sys.stderr = original_stderr
>>> print(output)
Initializing thesaurus...
  12 abbreviations found
  Initialization process completed successfully

Printing thesaurus header
  File : examples/fintech/data/thesaurus/abbreviations.the.txt

    DEMATEL
      ... CRITERIA is constructed and both the DECISION_MAKING_TRIAL_AND_EVALUA...
    E_FINANCE
      ELECTRONIC_FINANCE
    E_PAYMENT
      ELECTRONIC_PAYMENT
    EPAM
      we propose A_RESEARCH_MODEL using AN_EXTENDED_POST_ACCEPTANCE_MODEL ( EPAM )
    FINTECH
      FINANCIAL_TECHNOLOGY
    IOT
      INTERNET_OF_THING; INTERNET_OF_THINGS
    ISED
      THE_DIGITAL_REVOLUTION adds NEW_LAYERS to THE_MATERIAL_CULTURES of financ...
    MCDM
      MULTI_CRITERIA_DECISION_MAKING; ... _INNOVATION_THEORY , we propose A_NOV...