Get ValuesΒΆ

Example

>>> # Redirecting stderr to avoid messages during doctests
>>> import sys
>>> from io import StringIO
>>> original_stderr = sys.stderr
>>> sys.stderr = StringIO()
>>> # Reset the thesaurus to initial state
>>> from techminer2.thesaurus.descriptors import InitializeThesaurus
>>> InitializeThesaurus(
...     root_directory="examples/fintech/",
...     quiet=True,
... ).run()
>>> # Creates, configures, an run the exploder
>>> from techminer2.thesaurus.descriptors import GetValues
>>> terms = (
...     GetValues()
...     .with_patterns(["FINTECH", "FINANCIAL_TECHNOLOGIES"])
...     .where_root_directory("examples/fintech/")
...     .run()
... )
>>> terms[:5]
['FINANCIAL_TECHNOLOGIES', 'FINANCIAL_TECHNOLOGY', 'FINTECH', 'FINTECHS']