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

Seqeval typo fix #117

Merged
merged 3 commits into from
Oct 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions jury/metrics/seqeval/seqeval.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from jury.metrics._core import MetricAlias
from jury.metrics.seqeval.seqeval_for_sequence_classification import SeqevalForLanguageGeneration
from jury.metrics.seqeval.seqeval_for_sequence_labeling import SeqevalForSequnceLabeling

__main_class__ = "Seqeval"


class Seqeval(MetricAlias):
_SUBCLASS = SeqevalForLanguageGeneration
_SUBCLASS = SeqevalForSequnceLabeling
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@


@evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
class SeqevalForLanguageGeneration(MetricForSequenceLabeling):
class SeqevalForSequnceLabeling(MetricForSequenceLabeling):
def _download_and_prepare(self, dl_manager):
global seqeval
try:
import seqeval.metrics
except ModuleNotFoundError:
raise ModuleNotFoundError(requirement_message(path="Seqeval", package_name="seqeval"))
else:
super(SeqevalForLanguageGeneration, self)._download_and_prepare(dl_manager)
super(SeqevalForSequnceLabeling, self)._download_and_prepare(dl_manager)

def _info(self):
return evaluate.MetricInfo(
Expand Down