Extract themes from verbatims
Project description
Matcher-pcx-synomia
Extract themes from verbatims.
Version 1.1.4
Release date: 2019-10-30
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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b1676852ad4fd502cb0643a1416b6fbc8798e8878ef52de32d86668c3a7d07f |
|
MD5 | 935315f1bece2748a161164269ddf6a5 |
|
BLAKE2b-256 | dde6a5d96001bdcce5646c8dfa2a15224f46670bac58a38eaa1f8935384255b5 |
Hashes for matcher_pcx_synomia-1.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c7ec7d03640ce7e811e89c5cfd3cc2fa5d13e82c88d96257f32083cce1bc5ec |
|
MD5 | 0153ccdd46053db0484685ffabf3ece6 |
|
BLAKE2b-256 | 513b8b68de5cda58c345c5f444168118721eace1d59828eb37700db94a90195a |