Combine KeysΒΆ
Example
>>> # Preparation
>>> from techminer2.thesaurus.descriptors import InitializeThesaurus
>>> from techminer2.thesaurus.descriptors import ApplyThesaurus
>>> InitializeThesaurus(root_directory="examples/fintech/", quiet=True).run()
>>> ApplyThesaurus(root_directory="examples/fintech/", quiet=True).run()
>>> # Use
>>> from techminer2.thesaurus.user import CombineKeys
>>> df = (
... CombineKeys()
... #
... # FIELD:
... .with_field("descriptors")
... .with_field_pattern('FINTECH')
... .having_terms_in_top(30)
... .having_terms_ordered_by("OCC")
... .having_term_occurrences_between(2, None)
... .having_term_citations_between(None, None)
... .having_terms_in(None)
... #
... # DATABASE:
... .where_root_directory_is("examples/fintech/")
... .where_database_is("main")
... .where_record_years_range_is(None, None)
... .where_record_citations_range_is(None, None)
... .where_records_match(None)
... #
... .run()
... )
>>> df.head()
rows columns probability combine?
3 FINTECH TECHNOLOGIES 0.316 no
6 FINTECH FINANCIAL_TECHNOLOGIES 0.289 no
8 FINTECH THE_FINANCIAL_INDUSTRY 0.237 no
13 FINTECH REGULATORS 0.211 no
23 FINTECH BANKS 0.184 no