Create thesaurus

Example

>>> import sys
>>> from io import StringIO
>>> from techminer2.thesaurus.organizations import CreateThesaurus
>>> # Redirecting stderr to avoid messages
>>> original_stderr = sys.stderr
>>> sys.stderr = StringIO()
>>> # Create and run the thesaurus creator
>>> creator = (
...     CreateThesaurus()
...     .where_root_directory_is("example/")
... )
>>> creator.run()
>>> # Capture and print stderr output
>>> output = sys.stderr.getvalue()
>>> sys.stderr = original_stderr
>>> print(output)
Creating thesaurus from 'affiliations' field
  File : example/data/thesaurus/organizations.the.txt
  90 keys found
  Thesaurus creation completed successfully

Printing thesaurus header
  File : example/data/thesaurus/organizations.the.txt

    [UKN] Brussels, Belgium (BEL)
      Brussels, Belgium
    [UKN] CESifo, Poschingerstr. 5, Munich, 81679, Germany (DEU)
      CESifo, Poschingerstr. 5, Munich, 81679, Germany
    [UKN] FinTech HK, Hong Kong (HKG)
      FinTech HK, Hong Kong
    [UKN] Hochschule für Wirtschaft Fribourg, Switzerland (CHE)
      Hochschule für Wirtschaft Fribourg, Switzerland
    [UKN] Information Technol, Univeril, Germany (DEU)
      Information Technology, Univeril, Germany
    [UKN] Johns Hopkins SAIS, Washington, DC, United States (USA)
      Johns Hopkins SAIS, Washington, DC, United States
    [UKN] SK Telecom, Seoul, South Korea (KOR)
      SK Telecom, Seoul, South Korea
    [UKN] Stanford GSB and the Hoover Inst, United States (USA)
      Stanford GSB and the Hoover Institution, United States