Fields IntersectionΒΆ

Example

>>> from pprint import pprint
>>> from techminer2.database.field_extractors import FieldsIntersectionExtractor
>>> # Creates, configures, and runs the extractor
>>> extractor = (
...     FieldsIntersectionExtractor()
...     #
...     # FIELDS:
...     .with_field("raw_author_keywords")
...     .with_other_field("raw_index_keywords")
...     #
...     # DATABASE:
...     .where_root_directory_is("example/")
...     .where_database_is("main")
...     .where_record_years_range_is(None, None)
...     .where_record_citations_range_is(None, None)
... )
>>> terms = extractor.run()
>>> # Print the first 10 extracted terms
>>> pprint(terms[:10])
['ACTOR_NETWORK_THEORY',
 'ACTUALIZATION',
 'AGRICULTURE',
 'AGROPAY',
 'ARTIFICIAL_INTELLIGENCE',
 'BANKING',
 'BIG_DATA',
 'BLOCKCHAIN',
 'BUSINESS_MODELS',
 'CASE_STUDY_METHODS']