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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file matcher_pcx_synomia-1.1.4.tar.gz.
File metadata
- Download URL: matcher_pcx_synomia-1.1.4.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b1676852ad4fd502cb0643a1416b6fbc8798e8878ef52de32d86668c3a7d07f
|
|
| MD5 |
935315f1bece2748a161164269ddf6a5
|
|
| BLAKE2b-256 |
dde6a5d96001bdcce5646c8dfa2a15224f46670bac58a38eaa1f8935384255b5
|
File details
Details for the file matcher_pcx_synomia-1.1.4-py3-none-any.whl.
File metadata
- Download URL: matcher_pcx_synomia-1.1.4-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c7ec7d03640ce7e811e89c5cfd3cc2fa5d13e82c88d96257f32083cce1bc5ec
|
|
| MD5 |
0153ccdd46053db0484685ffabf3ece6
|
|
| BLAKE2b-256 |
513b8b68de5cda58c345c5f444168118721eace1d59828eb37700db94a90195a
|