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.

Source Distribution

matcher_pcx_synomia-1.1.4.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

matcher_pcx_synomia-1.1.4-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

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

Hashes for matcher_pcx_synomia-1.1.4.tar.gz
Algorithm Hash digest
SHA256 3b1676852ad4fd502cb0643a1416b6fbc8798e8878ef52de32d86668c3a7d07f
MD5 935315f1bece2748a161164269ddf6a5
BLAKE2b-256 dde6a5d96001bdcce5646c8dfa2a15224f46670bac58a38eaa1f8935384255b5

See more details on using hashes here.

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

Hashes for matcher_pcx_synomia-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3c7ec7d03640ce7e811e89c5cfd3cc2fa5d13e82c88d96257f32083cce1bc5ec
MD5 0153ccdd46053db0484685ffabf3ece6
BLAKE2b-256 513b8b68de5cda58c345c5f444168118721eace1d59828eb37700db94a90195a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page