Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current entity augmenters does not handle entity-'links' #219

Open
KennethEnevoldsen opened this issue Dec 26, 2023 · 0 comments
Open

Current entity augmenters does not handle entity-'links' #219

KennethEnevoldsen opened this issue Dec 26, 2023 · 0 comments
Labels
enhancement New feature or request no-stale

Comments

@KennethEnevoldsen
Copy link
Owner

KennethEnevoldsen commented Dec 26, 2023

Current entity augmenters do not handle entity links as one would use for entity linking.

Ideally, entity formatters should keep the same link, while entity replacers could potentially add a new link.

if you don't care about the links annotation they can be removed using augmenters such as:

def create_remove_links_augmenter() -> Callable[..., Iterator[Any]]:
    def remove_links(nlp: Language, example: Example) -> Iterator[Example]:
        example_dict = example.to_dict()
        example_dict["doc_annotation"].pop("links")
        yield Example.from_dict(example.y, example_dict)
    return remove_links
@KennethEnevoldsen KennethEnevoldsen added the enhancement New feature or request label Dec 26, 2023
@github-actions github-actions bot added the Stale label Jan 9, 2024
Repository owner deleted a comment from github-actions bot Jan 9, 2024
@github-actions github-actions bot added the Stale label Jan 24, 2024
Repository owner deleted a comment from github-actions bot Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request no-stale
Projects
None yet
Development

No branches or pull requests

1 participant