Semantic Themes API for Python#

class eot.wowool.semantic_themes.Themes#

The object used to collect the themes information.

Parameters

config – the configuration object.

topic_init.py#
from eot.wowool.native.core import PipeLine
from eot.wowool.semantic_themes import Themes

analysis = PipeLine("english,entity,semantic-theme")
themes = Themes()
# run the document analysis
document = themes(analysis("EyeOnID works on cybercrime prevention"))
for item in document.results("eot_themes"):
    print(f" - {item['name']}: {item['relevancy']}")
__init__(count: Optional[int] = 5, threshold: Optional[int] = 0, collect: Optional[dict] = None, attributes: Optional[list] = None, debug_info: Optional[bool] = False)#
__call__(document: eot.wowool.document.document.Document) eot.wowool.document.document.Document#

Callable object to perform the semantic theme calculation.