You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loving the various entity extraction utilities. They work great. One I use is people(). However, it seems to be unable to separate a list of comma-separated names into individual names, at least in this case.
This is what I'm seeing [ NodeJs 22, OSX, "compromise": "^14.13.0" ]:
import Nlp from 'compromise';
const text = `The NAACP’s founding members included white progressives Mary White Ovington, Henry Moskowitz, William English Walling and Oswald Garrison Villard, along with such African Americans as W.E.B. Du Bois, Ida B. Wells, Archibald Grimke and Mary Church Terrell.`;
const processed = Nlp(text);
console.log(processed.people().out('array'));
// [
// 'Mary White Ovington, Henry Moskowitz, William English Walling',
// 'Oswald Garrison Villard,',
// 'Ida B. Wells, Archibald Grimke',
// 'Mary Church Terrell.'
// ]
As a side note, you can also see it isn't catching W.E.B Du Bois but that seems a complex pattern, and prob best here would be to add to the custom lexicon I'm guessing.
Thanks again for compromise!
The text was updated successfully, but these errors were encountered:
Great library!
Loving the various entity extraction utilities. They work great. One I use is
people()
. However, it seems to be unable to separate a list of comma-separated names into individual names, at least in this case.This is what I'm seeing [ NodeJs 22, OSX, "compromise": "^14.13.0" ]:
As a side note, you can also see it isn't catching
W.E.B Du Bois
but that seems a complex pattern, and prob best here would be to add to the custom lexicon I'm guessing.Thanks again for
compromise
!The text was updated successfully, but these errors were encountered: