Skip to main content

Name parser and formatter (for politicians, individuals, and organizations)

Project description

This is the name parser and standardizer for the datacommons project. It now supports politician, individual and organization names.

Installation

Installation is easy:

pip install -e git+http://github.com/sunlightlabs/name-cleaver.git#egg=name-cleaver

Usage

Basic usage is the same for each type of name, just import the relevant NameCleaver class from one of:

  • PoliticianNameCleaver

  • IndividualNameCleaver

  • OrganizationNameCleaver

Example:

from name_cleaver import PolicitianNameCleaver smith = PoliticianNameCleaver(‘Smith, Robert J’).parse()

print str(smith) => “Robert J Smith”

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

name-cleaver-0.2.7.tar.gz (5.5 kB view hashes)

Uploaded source

Supported by

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