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
model
The BanCompetitors scanner accepts the following arguments:
def __init__( competitors: Sequence[str], *, threshold: float = 0.5, redact: bool = True, model: Optional[Dict] = None, ): ...
The model argument is unclear. I would suggest replacing the argument with a Literal (or an enum), like so:
SpanMarkerModel = Literal["tomaarsen/span-marker-bert-base-orgs", "tomaarsen/span-marker-bert-small-orgs"] def __init__( competitors: Sequence[str], *, threshold: float = 0.5, redact: bool = True, model: Optional[SpanMarkerModel] = None, ): ...
And replace this not in check with the following:
not in
from typing import get_args if model not in get_args(SpanMarkerModel): ...
The text was updated successfully, but these errors were encountered:
Hey @baggiponte , that's a great suggestion. Thanks for that. Will implement
Sorry, something went wrong.
Thanks! This might apply to FactualRelevance here. Rather than a tuple, it might be a Literal["base", "large", "small"].
Literal["base", "large", "small"]
I introduced a Model object which will be further improved in the next versions.
I saw the repo yesterday, this is cool! Is it documented already?
No branches or pull requests
The BanCompetitors scanner accepts the following arguments:
The
model
argument is unclear. I would suggest replacing the argument with a Literal (or an enum), like so:And replace this
not in
check with the following:The text was updated successfully, but these errors were encountered: