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

USAS tags explain function #14

Open
apmoore1 opened this issue Dec 8, 2021 · 0 comments
Open

USAS tags explain function #14

apmoore1 opened this issue Dec 8, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request low priority Low priority issue

Comments

@apmoore1
Copy link
Member

apmoore1 commented Dec 8, 2021

spaCy has this really great function called explain, whereby it will output the verbose version of the tag, e.g.

import spacy
assert 'adjective' == spacy.explain('ADJ')

I was thinking we could have the same functionaility within pymusas for USAS tags, what do you think @perayson , e.g.

import pymusas
assert 'Time: General' == pymusas.explain('T1.1')

The hard part with the explain function could come when including the symbols within the USAS tagset like the rarity symbols and the plus and minus symbols. The hard part about this would be how to represent that in the more verbose setting, e.g. if it was the tag X1+ the verbose could be either General positive or General (positive) whereby all extra symbol text is added to the original tag text within parentheses. I think I prefer the parentheses version.

@apmoore1 apmoore1 added enhancement New feature or request low priority Low priority issue labels Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low priority Low priority issue
Projects
None yet
Development

No branches or pull requests

2 participants