We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The type hint of ManualVerbalizer.init includes:
label_words (:obj:`Union[Sequence[str], Mapping[str, str]]`, optional): The label words that are projected by the labels.
However, I found two cases where the type of label_words is neither Sequence[str] or Mapping[str, str].
In Introduction with an Example,
from openprompt.prompts import ManualVerbalizer promptVerbalizer = ManualVerbalizer( classes = classes, label_words = { "negative": ["bad"], "positive": ["good", "wonderful", "great"], }, tokenizer = tokenizer, )
In 0_basic.py,
myverbalizer = ManualVerbalizer(tokenizer, num_classes=2, label_words=[["yes"], ["no"], ["maybe"]])
The text was updated successfully, but these errors were encountered:
Thank you for pointing out this issue. It has been fixed in commit.
Sorry, something went wrong.
No branches or pull requests
The type hint of ManualVerbalizer.init includes:
However, I found two cases where the type of label_words is neither Sequence[str] or Mapping[str, str].
In Introduction with an Example,
In 0_basic.py,
The text was updated successfully, but these errors were encountered: