Extract themes from verbatims
Project description
Matcher-pcx-synomia
Extract themes from verbatims.
Version 1.1.1
Release date: 2019-08-07
Getting Started
pip install ...
Prerequisites
- flashtext: $ pip install flashtext
Usage
- You would need a lexicon.txt with the following structure:
manque de place=><manque de place;place;-1< personnel désagréable=><personnel désagréable;personnel;-1< train direct=><train direct;train;1<
- Init matcher:
themes_matcher = matcher.ThemesMatcher('lexicon.txt')
- Extract themes from verbatims:
verbatims = ["Le confort et la propreté","Rapidité (Train Direct), mais personnel désagréable","c'est catastrophique… retards chroniques, personnel désagréable","Le manque de place ds le tgv"] vbs2matches = themes_matcher.match(verbatims) print(vbs2matches) {'Rapidité (Train Direct), mais personnel désagréable': [['train direct', 'train', '1'], ['personnel désagréable', 'personnel', '-1']], 'Le confort et la propreté': [], 'Le manque de place ds le tgv': [['manque de place', 'place', '-1']], "c'est catastrophique… retards chroniques, personnel désagréable": [['personnel désagréable', 'personnel', '-1']]}
Authors
- Synomia
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for matcher_pcx_synomia-1.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27f64c5164d851f35787fcde01fb7dcfc39e197f4a08f4f2d0ad3f9529638441 |
|
MD5 | 2002f6be26e50ae15e98c509e2ba8bcd |
|
BLAKE2b-256 | 50817ba5084185acf676c88ad8f1ac953626cb9434a74427a20c4a3f842f6b14 |
Hashes for matcher_pcx_synomia-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e0b2e9f5be96fb744b41d68bf8db00f1a13c11290ae2ad77209020719d6a637 |
|
MD5 | beee8a2aca04e4877d2adfb0e4b8db36 |
|
BLAKE2b-256 | 5d3b44fb5b6e71cb03e102d1432512f6a0dea7e58c9772c449c42994c983c57f |