victortrac / name-cleaver Goto Github PK
View Code? Open in Web Editor NEWThis project forked from sunlightlabs/name-cleaver
Parser and standardizer for politician, individual and organization names.
This project forked from sunlightlabs/name-cleaver
Parser and standardizer for politician, individual and organization names.
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 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 PoliticianNameCleaver smith = PoliticianNameCleaver('Smith, Robert J').parse() smith.first => "Robert" smith.middle => "J." smith.last => "Smith" print str(smith) => "Robert J. Smith" Usage as above can usually be expected to return a Name object, but is not guaranteed to not throw an exception if NameCleaver is given unexpected input or otherwise can't figure out what to do with a name. You can look for and handle Name Cleaver's `UnparseableNameException` class. If you don't want to deal with handling exceptions, NameCleaver has a safe mode: smith = PoliticianNameCleaver('Smith, Robert J').parse(safe=True) In safe mode, if NameCleaver encounters an exception or doesn't come up with a fully-formed name, it will return the original input string.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.