DeterminersΒΆ
Example
>>> import sys
>>> from io import StringIO
>>> # Redirecting stderr to avoid messages
>>> original_stderr = sys.stderr
>>> sys.stderr = StringIO()
>>> # Create the thesaurus
>>> from techminer2.thesaurus.descriptors import InitializeThesaurus
>>> InitializeThesaurus(root_directory="examples/fintech/", quiet=True).run()
>>> from techminer2.thesaurus.descriptors import RemoveDeterminers
>>> RemoveDeterminers(root_directory="examples/fintech/", tqdm_disable=True, use_colorama=False).run()
>>> # Capture and print stderr output
>>> output = sys.stderr.getvalue()
>>> sys.stderr = original_stderr
>>> print(output)
Removing initial determiners from thesaurus keys...
File : examples/fintech/data/thesaurus/descriptors.the.txt
602 initial determiners removed successfully
Removal process completed successfully
Printing thesaurus header
File : examples/fintech/data/thesaurus/descriptors.the.txt
A_THEORY
A_A_THEORY
ACADEMIC_FINANCE_COMMUNITY
THE_ACADEMIC_FINANCE_COMMUNITY
ACADEMICS
ACADEMICS; BOTH_ACADEMICS
ACCEPTANCE
THE_ACCEPTANCE
ACTIVE_PARTICIPANT
AN_ACTIVE_PARTICIPANT
ACTORS
ACTORS; ALL_ACTORS
ADOPTION
ADOPTION; THE_ADOPTION
ADVANCEMENT
THE_ADVANCEMENT