Skip to main content

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.

Files for matcher-pcx-synomia, version 1.1.4
Filename, size File type Python version Upload date Hashes
Filename, size matcher_pcx_synomia-1.1.4-py3-none-any.whl (3.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size matcher_pcx_synomia-1.1.4.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page