Terms by Cluster SummaryΒΆ

>>> #
>>> # TEST PREPARATION
>>> #
>>> from techminer2.thesaurus.descriptors import ApplyThesaurus, CreateThesaurus
>>> CreateThesaurus(root_directory="example/", quiet=True).run()
>>> ApplyThesaurus(root_directory="example/", quiet=True).run()
>>> #
>>> # CODE TESTED
>>> #
>>> from techminer2.packages.networks.co_occurrence.author_keywords import TermsByClusterSummary
>>> (
...     TermsByClusterSummary()
...     #
...     # FIELD:
...     .having_terms_in_top(20)
...     .having_terms_ordered_by("OCC")
...     .having_term_occurrences_between(None, None)
...     .having_term_citations_between(None, None)
...     .having_terms_in(None)
...     #
...     # COUNTERS:
...     .using_term_counters(True)
...     #
...     # NETWORK:
...     .using_clustering_algorithm_or_dict("louvain")
...     .using_association_index("association")
...     #
...     # DATABASE:
...     .where_root_directory_is("example/")
...     .where_database_is("main")
...     .where_record_years_range_is(None, None)
...     .where_record_citations_range_is(None, None)
...     .where_records_match(None)
...     #
...     .run()
... )
   Cluster  ...                                              Terms
0        0  ...  FINTECH 31:5168; BUSINESS_MODEL 03:0896; FINAN...
1        1  ...  INNOVATION 07:0911; FINANCIAL_SERVICE 04:0667;...
2        2  ...  MARKETPLACE_LENDING 03:0317; LENDINGCLUB 02:02...
3        3  ...  ARTIFICIAL_INTELLIGENCE 02:0327; FINANCE 02:03...

[4 rows x 4 columns]
>>> #
>>> # CODE TESTED
>>> #
>>> from techminer2.packages.networks.co_occurrence.author_keywords import TermsByClusterSummary
>>> (
...     TermsByClusterSummary()
...     #
...     # FIELD:
...     .having_terms_in_top(20)
...     .having_terms_ordered_by("OCC")
...     .having_term_occurrences_between(None, None)
...     .having_term_citations_between(None, None)
...     .having_terms_in(None)
...     #
...     # COUNTERS:
...     .using_term_counters(False)
...     #
...     # NETWORK:
...     .using_clustering_algorithm_or_dict("louvain")
...     .using_association_index("association")
...     #
...     # DATABASE:
...     .where_root_directory_is("example/")
...     .where_database_is("main")
...     .where_record_years_range_is(None, None)
...     .where_record_citations_range_is(None, None)
...     .where_records_match(None)
...     #
...     .run()
... )
   Cluster  ...                                              Terms
0        0  ...  FINTECH; BUSINESS_MODEL; FINANCIAL_INCLUSION; ...
1        1  ...  INNOVATION; FINANCIAL_SERVICE; FINANCIAL_INSTI...
2        2  ...  MARKETPLACE_LENDING; LENDINGCLUB; PEER_TO_PEER...
3        3  ...           ARTIFICIAL_INTELLIGENCE; FINANCE; ROBOTS

[4 rows x 4 columns]