Skip to content

How to extract organization names? #916

Discussion options

You must be logged in to vote

hi Tom, yeah that looks pretty good to me.
if you're expecting some properNouns to be organizations, you can add them like

let vocab={
 'Aldous':'Organization'
}
nlp(text, vocab).organizations()

i'm not sure about ambiguous terms like 'Amex\nCorrespondence/Bankruptcy'. if you wanted to be more aggressive than the results of .organizations(), you could whip up something using .match('#ProperNoun+')
cheers

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@tomdavidson
Comment options

@spencermountain
Comment options

Answer selected by spencermountain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants