Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

get_original_spans. A simple example with an error #30

Closed
LaurentBie opened this issue Nov 4, 2020 · 2 comments
Closed

get_original_spans. A simple example with an error #30

LaurentBie opened this issue Nov 4, 2020 · 2 comments

Comments

@LaurentBie
Copy link

text = 'A ´'
tokens = ['A', '´']
spans = get_original_spans(tokens, text)

for token, span in zip(tokens, spans):
print("Token:", token, '->', text[span[0]: span[1]])

@tamuhey
Copy link
Collaborator

tamuhey commented Nov 5, 2020

Hi, thanks for bug reporting!
This bug was resolved in textspan.get_original_spans, and tokenizations.get_original_spans will be deprecated in future. Please use textspan.get_original_spans instead.

@tamuhey tamuhey closed this as completed Nov 5, 2020
@tamuhey
Copy link
Collaborator

tamuhey commented Nov 5, 2020

get_original_spans was deprecated since 0.7.1, which I've just published.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants