in reply to Optimising Lingua::EN::NamedEntity for Very Strings
Any suggestions so I can send the maintainer a patch?
Perhaps parameterisation, as in
or filter the output (but not solve your problem)
my @entities = extract_entities($some_text, $max_string_length);
my @entities = extract_entities($some_text, $max_entity_length);
A reasonable default for either option might be 92 characters, which would accomodate a variant spelling of the name of a hill in my country of origin;
Tetaumatawhakatangihangakoauaotamateaurehaeaturipukapihimaungahoronukupokaiwhenuaakitanarahu (link goes to image).