Skip to content

Allowing for custom blacklist #163

@anamamatelashvili

Description

@anamamatelashvili

Hi,

Thanks a lot for this amazing extension to spaCy. I have used it in a project and it was very helpful.

I was wondering if it is possible to add a feature where one can pass a custom list for the blacklist parameter.

For instance:
If blacklist is enabled

nlp("I really liked that ice cream. My dog did not.")._.coref_resolved

returns "I really liked that ice cream. My dog did not." unchanged.

However, 'we', 'out', 'us' are not in the blacklist, so,

nlp("We really liked that ice cream. Our dog did not.")._.coref_resolved

returns "We really liked that ice cream. We dog did not."

It would be very helpful if it was possible to customise the blacklist.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions