Normalize KeysΒΆ
Example
>>> # Redirecting stderr to avoid messages
>>> import sys
>>> from io import StringIO
>>> original_stderr = sys.stderr
>>> sys.stderr = StringIO()
>>> # Restore the thesaurus
>>> from techminer2.thesaurus.descriptors import InitializeThesaurus
>>> InitializeThesaurus(root_directory="examples/fintech/", quiet=True).run()
>>> from techminer2.thesaurus.descriptors import NormalizeKeys
>>> (
... NormalizeKeys(use_colorama=False)
... .where_root_directory_is("examples/fintech/")
... .run()
... )
>>> # Capture and print stderr output
>>> output = sys.stderr.getvalue()
>>> sys.stderr = original_stderr
>>> print(output)
Normalizing Keys...
File : examples/fintech/data/thesaurus/descriptors.the.txt
15 replacements made successfully
Normalization process completed successfully
Printing thesaurus header
File : examples/fintech/data/thesaurus/descriptors.the.txt
*GEOGRAPHIC_REGIONS*
AUSTRALIA_AND_NEW_ZEALAND; BRAZIL; CHINA; EUROPE; GERMANY; INDONESIA; KEN...
*SURVEY*
SURVEYS
CONSTRUCT
CONSTRUCTS
ORGANIZATION
BUSINESS; BUSINESSES; COMPANIES; FIRMS; ORGANIZATIONS
A_A_THEORY
A_A_THEORY
A_BASIC_RANDOM_SAMPLING_STRATEGY
A_BASIC_RANDOM_SAMPLING_STRATEGY
A_BEHAVIOURAL_PERSPECTIVE
A_BEHAVIOURAL_PERSPECTIVE
A_BETTER_UNDERSTANDING
A_BETTER_UNDERSTANDING