Comments (5)
@Shrinidhikulkarni7 nltk is the library which can be used for extracting the human names. Below is the code for that:
import nltk
from nltk.corpus import stopwords
stop = stopwords.words('english')
def extract_names(document):
names = []
sentences = ie_preprocess(document)
for tagged_sentence in sentences:
for chunk in nltk.ne_chunk(tagged_sentence):
if type(chunk) == nltk.tree.Tree:
if chunk.label() == 'PERSON':
names.append(' '.join([c[0] for c in chunk]))
return names
I am using this code in ResumeParser but it is not that much perfect name fetcher. I got the output like:
Names: [u'Brendan,Herger', u'Hiren,Patel,Address', u'Albert,Street', u'Sanket,Rajendra,Mantri', u'William', u'San,Franc']
Here, as you can see it has considered Address, Albert, Street as a name. I guess that is the limitation of nltk library.
I am also looking for the good solution. Hope it help you. Good luck.
from resumeparser.
A more robust approach might be to list out people and organizations on the resume. For example, I've worked for congresswoman Gabbie Giffords, so an NER search on my resume would include Brendan Herger
(me), and Gabbie Giffords
(a former employer).
I'm working on an approach similar to @iHirenDev 's which uses Stanford's NER engine, and NLTK's interface for Stanford's engine.
Unfortunately, NLTK's interface is pretty clumsy, and requires managing the Stanford NER jar separately.
from resumeparser.
@Shrinidhikulkarni7 : I'm not sure that I understand. Which name? The applicant name?
from resumeparser.
@bjherger Yes the applicant name.
from resumeparser.
@Shrinidhikulkarni7 : I've included this functionality w/ version 3.x. Please let me know if it doesn't suit your needs.
from resumeparser.
Related Issues (20)
- Resumes not able to be parsed HOT 6
- Environment.yml is over specified
- Project lacks CI/CD
- WindowsError when launching for first time HOT 4
- can't find model 'en' HOT 4
- After running once or twice get into this error: File Not Found: ../confs/config.yaml.template
- only PDF files are supported HOT 2
- Running into a type mismatch error HOT 2
- Unicode encoding error HOT 1
- Getting Package errors
- For single alphabet skills such as C or R it shows every doc/pdf has that skill
- TypeError: Argument 'string' has incorrect type (expected unicode, got str)
- Unicode Decoding Error HOT 2
- Sample Resumes Incorrect Output
- UnicodeDecoding Error
- Can't successfully run requirements.tx
- Building requirments fails
- python main.py thowing errors HOT 1
- :Error occurred during regex search
- License?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from resumeparser.