Skip to main content

code to get signature to do stylometric analysis

Project description

dig-Stylometry generates the signature for the required fields with the following rules

  1. All digits are replaced with D
  2. All words starting with capital letter are replaced with C and all lowercase words with w
  3. Single letter capital words are replaced with L

On which fields do you want the signature to be computed and name of signature fields ? You have to specify the jq paths in config file, if field is not present in the specific path - It won’t produce any signature Check the sample config file in tests folder

Arguments: (a) Input file - required (b) Output dir - required (c) Config file - required (d) file_format - text/sequence (optional) default value is sequence

Sample running of driver program in tests folder:

python dig-stylometry/digStylometry/tests/ -i dig-stylometry/digStylometry/tests/text-json/input -o dig-stylometry/digStylometry/tests/text-json/output/ -c dig-stylometry/digStylometry/tests/config.json –file_format text

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 digStylometry, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size digStylometry-0.1.4.tar.gz (3.6 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 SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page