>>> from techminer2.co_occurrence_network import terms_to_clusters_mapping
>>> mapping = terms_to_clusters_mapping(
... #
... # PARAMS:
... field='author_keywords',
... retain_counters=True,
... #
... # COLUMN PARAMS:
... top_n=20,
... occ_range=(None, None),
... gc_range=(None, None),
... custom_terms=None,
... #
... # NETWORK PARAMS:
... algorithm_or_dict="louvain",
... association_index="association",
... #
... # DATABASE PARAMS:
... root_dir="example/",
... database="main",
... year_filter=(None, None),
... cited_by_filter=(None, None),
... )
>>> from pprint import pprint
>>> pprint(mapping)
{'ARTIFICIAL_INTELLIGENCE 02:0327': 3,
'BANKING 02:0291': 1,
'BLOCKCHAIN 02:0305': 0,
'BUSINESS_MODELS 02:0759': 0,
'CASE_STUDY 02:0340': 0,
'CROWDFUNDING 03:0335': 0,
'CYBER_SECURITY 02:0342': 0,
'FINANCE 02:0309': 3,
'FINANCIAL_INCLUSION 03:0590': 0,
'FINANCIAL_SERVICES 04:0667': 1,
'FINANCIAL_TECHNOLOGY 03:0461': 1,
'FINTECH 31:5168': 0,
'INNOVATION 07:0911': 1,
'LENDINGCLUB 02:0253': 2,
'MARKETPLACE_LENDING 03:0317': 2,
'PEER_TO_PEER_LENDING 02:0253': 2,
'REGTECH 02:0266': 0,
'ROBOTS 02:0289': 3,
'SHADOW_BANKING 02:0253': 2,
'TECHNOLOGY 02:0310': 1}