themes – Themes#

Semantic Themes – or themes – is the command line utility provided by the eot-wowool-sdk Python package allowing you to easily use the functionality of the Themes application.

Example#

Identifying the most prominent themes:

themes -p 'english' \
    -i "There have been 780 confirmed cases of monkeypox, the World Health Organization says."

which yields:

pipeline: english,semantic-theme,topics.app
--------------------------------------------------------------------------------
id:stream_id_6760625228729472720
--------------------------------------------------------------------------------
Topics:
'confirmed case of monkeypox': 100
'World Health Organization': 100
Semantic-Themes:
'healthcare' :{'relevancy': 100}
'viral infection' :{'relevancy': 67}
'pathology' :{'relevancy': 33}

Usage#

usage: themes [-h] [-p PIPELINE] [--config CONFIG] [-f FILE] [-i TEXT]
              [--debug] [--json] [--raw_print] [-c COUNT] [-t THRESHOLD]

Named Arguments#

-p, --pipeline

pipeline to process.

--config

the themes json config file.

-f, --file

folder or file you want to process

-i, --text

the string you want to process

--debug

verbose info

Default: False

--json

verbose output

Default: False

--raw_print

print nicely

Default: False

-c, --count

count of desired themes

Default: 5

-t, --threshold

threshold of desired themes [0-100]

Default: 0