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

Edit indices #43

Closed
jvhoffbauer opened this issue Mar 20, 2023 · 3 comments
Closed

Edit indices #43

jvhoffbauer opened this issue Mar 20, 2023 · 3 comments

Comments

@jvhoffbauer
Copy link

jvhoffbauer commented Mar 20, 2023

What is the domain of Error.o_start, etc? Are they token indices within spaCy docs?

@chrisjbryant
Copy link
Owner

Yes. It's the token index for the edit within the original sentence. Edit.c_start is the same thing but for the offset in the corrected sentence.

@jvhoffbauer
Copy link
Author

Thanks. Just to clarify - this assumes spaCy tokenisation or is it another method?

@chrisjbryant
Copy link
Owner

It makes no assumption at all.

If your text is untokenised, you can add a flag to make spacy do the tokenisation.
If your text is tokenised, you can split on whitespace and load the text as spacy Token objects directly.

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

No branches or pull requests

2 participants