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

fix(pos): fix mismatch between buffer strings and POS tags #555

Merged
merged 2 commits into from
Jan 3, 2024

Conversation

Nickersoft
Copy link
Member

While the PartOfSpeech struct had both a Tag and a Buf field, a stringified version of the Buf value from FlatBuffers was being used to locate the POS during lookups. If this differed from the Tag in the struct, then the POS wouldn't be found.

This PR updates Tag to be a computed value based on the stringified version of the FlatBuffer's enum (Buf) and replaces all underscores with dashes.

Breaking change: the "abbrev" label has been changed to the shorter "abv" to match FlatBuffers

Closes #551

@Nickersoft Nickersoft self-assigned this Jan 3, 2024
@Nickersoft Nickersoft merged commit fe190f1 into main Jan 3, 2024
1 check failed
@Nickersoft Nickersoft deleted the nickersoft/pos-fix branch January 3, 2024 18:12
@github-actions github-actions bot mentioned this pull request Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Part of Speech 'abbrev' shows as 'unknown'
1 participant