Extract themes from verbatims
Project description
Matcher-pcx-synomia
Extract themes from verbatims.
Version 1.1.3
Release date: 2019-09-20
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"] matches = themes_matcher.match(verbatims) print(matches) [[], [], [['train direct', 'train', '1'], ['personnel désagréable', 'personnel', '-1']], [['personnel désagréable', 'personnel', '-1']], [['manque de place', 'place', '-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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cde33de92e244ef80a41258ffb8af8877521d4223c731ce59189cbab49a7aacc |
|
MD5 | 3bda9ceb0a66aed9acba2de78d649b9c |
|
BLAKE2b-256 | 4ef202a953453457b1706f8ceaf1ddf19e429eb23c7b11c7ab1edfa933147dbb |
Hashes for matcher_pcx_synomia-1.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63d575820acc7d0d0419bc2cfc55e121cb70c8606a347dc0a62199e2148a0753 |
|
MD5 | 942c2020627d895692eb3b48fa27e161 |
|
BLAKE2b-256 | 2ddf91109bc626aecf72687af232b1284579325ad6a051efbbe98ab291ae857f |