Extract themes from verbatims
Project description
Matcher-pcx-synomia
Extract themes from verbatims.
Version 1.1.2
Release date: 2019-09-18
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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f4dfd249d45f9cfa2039c3cc159fdfe1cc668c5cdf3c520f50f1de9878d076b |
|
MD5 | 2e98f42db7beed85b878bee7b523c0fa |
|
BLAKE2b-256 | 1639907688ad1b53c45e109c61de9e887f154cb680c76744f7b11f2c4985fc60 |
Hashes for matcher_pcx_synomia-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb2d1965177407233632a183610ae74293336e830af58678cb55ee583aee49ae |
|
MD5 | 7b4ed7c7791c3933af51712cf55e02d8 |
|
BLAKE2b-256 | 908b736af1304f3d6503e0e1f92d74c0b9747fe7b79d453f4f730274f64dc2b5 |