Giter Site home page Giter Site logo

Comments (5)

iHirenDev avatar iHirenDev commented on June 15, 2024 1

@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.

bjherger avatar bjherger commented on June 15, 2024 1

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.

bjherger avatar bjherger commented on June 15, 2024

@Shrinidhikulkarni7 : I'm not sure that I understand. Which name? The applicant name?

from resumeparser.

Shrinidhikulkarni7 avatar Shrinidhikulkarni7 commented on June 15, 2024

@bjherger Yes the applicant name.

from resumeparser.

bjherger avatar bjherger commented on June 15, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.