Count Terms per Record

>>> from techminer2.database.field_operators import CountTermsPerRecordOperator
>>> (
...     CountTermsPerRecordOperator()
...     #
...     # FIELDS:
...     .with_field("authors")
...     .with_other_field("test_num_authors")
...     #
...     # DATABASE:
...     .where_root_directory_is("example/")
...     #
...     .run()
... )

# >>> from techminer2.database.tools import Query # >>> ( # … Query() # … .set_analysis_params( # … expr=”SELECT authors, test_num_authors FROM database LIMIT 5;”, # … ).set_database_params( # … root_dir=”example/”, # … database=”main”, # … year_filter=(None, None), # … cited_by_filter=(None, None), # … ).build() # … )

authors test_num_authors

0 Kim Y.; Choi J.; Park Y.-J.; Yeon J. 4 1 Shim Y.; Shin D.-H. 2 2 Chen L./1 1 3 Romanova I.; Kudinska M. 2 4 Gabor D.; Brooks S. 2