repo stringlengths 2 99 | file stringlengths 13 225 | code stringlengths 0 18.3M | file_length int64 0 18.3M | avg_line_length float64 0 1.36M | max_line_length int64 0 4.26M | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
evaluate | evaluate-main/metrics/mauve/mauve.py | # coding=utf-8
# Copyright 2020 The HuggingFace Evaluate Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | 6,626 | 42.887417 | 159 | py |
evaluate | evaluate-main/metrics/mauve/app.py | import sys
import evaluate
from evaluate.utils import launch_gradio_widget
sys.path = [p for p in sys.path if p != "/home/user/app"]
module = evaluate.load("mauve")
sys.path = ["/home/user/app"] + sys.path
launch_gradio_widget(module)
| 239 | 19 | 57 | py |
evaluate | evaluate-main/metrics/accuracy/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("accuracy")
launch_gradio_widget(module)
| 130 | 17.714286 | 47 | py |
evaluate | evaluate-main/metrics/accuracy/accuracy.py | # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | 4,203 | 38.28972 | 213 | py |
evaluate | evaluate-main/metrics/cuad/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("cuad")
launch_gradio_widget(module)
| 126 | 17.142857 | 47 | py |
evaluate | evaluate-main/metrics/cuad/cuad.py | # Copyright 2020 The HuggingFace Evaluate Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 5,277 | 43.728814 | 250 | py |
evaluate | evaluate-main/metrics/cuad/compute_score.py | """ Official evaluation script for CUAD dataset. """
import argparse
import json
import re
import string
import sys
import numpy as np
IOU_THRESH = 0.5
def get_jaccard(prediction, ground_truth):
remove_tokens = [".", ",", ";", ":"]
for token in remove_tokens:
ground_truth = ground_truth.replace(t... | 6,977 | 32.873786 | 115 | py |
evaluate | evaluate-main/metrics/pearsonr/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("pearsonr")
launch_gradio_widget(module)
| 130 | 17.714286 | 47 | py |
evaluate | evaluate-main/metrics/pearsonr/pearsonr.py | # Copyright 2021 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | 5,296 | 48.046296 | 475 | py |
evaluate | evaluate-main/metrics/mase/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("mase")
launch_gradio_widget(module)
| 126 | 17.142857 | 47 | py |
evaluate | evaluate-main/metrics/mase/mase.py | # Copyright 2022 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | 5,504 | 38.042553 | 237 | py |
evaluate | evaluate-main/metrics/coval/coval.py | # Copyright 2020 The HuggingFace Evaluate Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 14,432 | 43.822981 | 307 | py |
evaluate | evaluate-main/metrics/coval/app.py | import sys
import evaluate
from evaluate.utils import launch_gradio_widget
sys.path = [p for p in sys.path if p != "/home/user/app"]
module = evaluate.load("coval")
sys.path = ["/home/user/app"] + sys.path
launch_gradio_widget(module)
| 239 | 19 | 57 | py |
evaluate | evaluate-main/metrics/google_bleu/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("google_bleu")
launch_gradio_widget(module)
| 133 | 18.142857 | 47 | py |
evaluate | evaluate-main/metrics/google_bleu/google_bleu.py | # Copyright 2020 The HuggingFace Evaluate Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 8,644 | 50.153846 | 141 | py |
evaluate | evaluate-main/metrics/google_bleu/tokenizer_13a.py | # Source: https://github.com/mjpost/sacrebleu/blob/master/sacrebleu/tokenizers/tokenizer_13a.py
# Copyright 2020 SacreBLEU Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# htt... | 3,344 | 32.118812 | 109 | py |
evaluate | evaluate-main/metrics/sacrebleu/app.py | import sys
import evaluate
from evaluate.utils import launch_gradio_widget
sys.path = [p for p in sys.path if p != "/home/user/app"]
module = evaluate.load("sacrebleu")
sys.path = ["/home/user/app"] + sys.path
launch_gradio_widget(module)
| 243 | 19.333333 | 57 | py |
evaluate | evaluate-main/metrics/sacrebleu/sacrebleu.py | # Copyright 2020 The HuggingFace Evaluate Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 8,146 | 44.513966 | 349 | py |
evaluate | evaluate-main/metrics/seqeval/seqeval.py | # Copyright 2020 The HuggingFace Evaluate Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 6,338 | 37.418182 | 146 | py |
evaluate | evaluate-main/metrics/seqeval/app.py | import sys
import evaluate
from evaluate.utils import launch_gradio_widget
sys.path = [p for p in sys.path if p != "/home/user/app"]
module = evaluate.load("seqeval")
sys.path = ["/home/user/app"] + sys.path
launch_gradio_widget(module)
| 241 | 19.166667 | 57 | py |
evaluate | evaluate-main/metrics/mae/mae.py | # Copyright 2022 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | 4,488 | 38.377193 | 226 | py |
evaluate | evaluate-main/metrics/mae/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("mae")
launch_gradio_widget(module)
| 125 | 17 | 47 | py |
evaluate | evaluate-main/metrics/xtreme_s/xtreme_s.py | # Copyright 2022 The HuggingFace Evaluate Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 10,819 | 38.779412 | 148 | py |
evaluate | evaluate-main/metrics/xtreme_s/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("xtreme_s", "mls")
launch_gradio_widget(module)
| 137 | 18.714286 | 47 | py |
evaluate | evaluate-main/metrics/chrf/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("chrf")
launch_gradio_widget(module)
| 126 | 17.142857 | 47 | py |
evaluate | evaluate-main/metrics/chrf/chrf.py | # Copyright 2021 The HuggingFace Evaluate Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 9,005 | 46.650794 | 167 | py |
evaluate | evaluate-main/metrics/mape/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("mape")
launch_gradio_widget(module)
| 126 | 17.142857 | 47 | py |
evaluate | evaluate-main/metrics/mape/mape.py | # Copyright 2022 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | 4,684 | 38.369748 | 237 | py |
evaluate | evaluate-main/metrics/wer/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("wer")
launch_gradio_widget(module)
| 125 | 17 | 47 | py |
evaluate | evaluate-main/metrics/wer/wer.py | # Copyright 2021 The HuggingFace Evaluate Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 4,485 | 40.925234 | 616 | py |
evaluate | evaluate-main/metrics/super_glue/super_glue.py | # Copyright 2020 The HuggingFace Evaluate Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 9,644 | 39.52521 | 166 | py |
evaluate | evaluate-main/metrics/super_glue/record_evaluation.py | """
Official evaluation script for ReCoRD v1.0.
(Some functions are adopted from the SQuAD evaluation script.)
"""
import argparse
import json
import re
import string
import sys
from collections import Counter
def normalize_answer(s):
"""Lower text and remove punctuation, articles and extra whitespace."""
... | 3,724 | 32.258929 | 117 | py |
evaluate | evaluate-main/metrics/super_glue/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("super_glue", "copa")
launch_gradio_widget(module)
| 140 | 19.142857 | 47 | py |
evaluate | evaluate-main/metrics/glue/glue.py | # Copyright 2020 The HuggingFace Evaluate Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 5,749 | 35.624204 | 146 | py |
evaluate | evaluate-main/metrics/glue/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("glue", "sst2")
launch_gradio_widget(module)
| 134 | 18.285714 | 47 | py |
evaluate | evaluate-main/metrics/squad_v2/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("squad_v2")
launch_gradio_widget(module)
| 130 | 17.714286 | 47 | py |
evaluate | evaluate-main/metrics/squad_v2/squad_v2.py | # Copyright 2020 The HuggingFace Evaluate Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 6,474 | 45.92029 | 195 | py |
evaluate | evaluate-main/metrics/squad_v2/compute_score.py | """Official evaluation script for SQuAD version 2.0.
In addition to basic functionality, we also compute additional statistics and
plot precision-recall curves if an additional na_prob.json file is provided.
This file is expected to map question ID's to the model's predicted probability
that a question is unanswerable... | 11,263 | 33.765432 | 118 | py |
evaluate | evaluate-main/metrics/cer/cer.py | # Copyright 2021 The HuggingFace Evaluate Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 5,599 | 34 | 241 | py |
evaluate | evaluate-main/metrics/cer/test_cer.py | # Copyright 2021 The HuggingFace Evaluate Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 5,054 | 38.186047 | 97 | py |
evaluate | evaluate-main/metrics/cer/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("cer")
launch_gradio_widget(module)
| 125 | 17 | 47 | py |
evaluate | evaluate-main/metrics/meteor/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("meteor")
launch_gradio_widget(module)
| 128 | 17.428571 | 47 | py |
evaluate | evaluate-main/metrics/meteor/meteor.py | # Copyright 2020 The HuggingFace Evaluate Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 6,809 | 40.779141 | 142 | py |
evaluate | evaluate-main/metrics/perplexity/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("perplexity", module_type="metric")
launch_gradio_widget(module)
| 154 | 21.142857 | 58 | py |
evaluate | evaluate-main/metrics/perplexity/perplexity.py | # Copyright 2022 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | 8,460 | 42.839378 | 200 | py |
evaluate | evaluate-main/metrics/code_eval/execute.py | # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | 6,102 | 24.751055 | 99 | py |
evaluate | evaluate-main/metrics/code_eval/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("code_eval")
launch_gradio_widget(module)
| 131 | 17.857143 | 47 | py |
evaluate | evaluate-main/metrics/code_eval/code_eval.py | # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | 9,178 | 41.892523 | 113 | py |
evaluate | evaluate-main/metrics/spearmanr/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("spearmanr")
launch_gradio_widget(module)
| 131 | 17.857143 | 47 | py |
evaluate | evaluate-main/metrics/spearmanr/spearmanr.py | # Copyright 2021 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | 5,055 | 40.785124 | 111 | py |
evaluate | evaluate-main/metrics/charcut_mt/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("charcut_mt")
launch_gradio_widget(module)
| 132 | 18 | 47 | py |
evaluate | evaluate-main/metrics/charcut_mt/charcut_mt.py | # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | 3,948 | 42.877778 | 118 | py |
evaluate | evaluate-main/metrics/frugalscore/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("frugalscore")
launch_gradio_widget(module)
| 133 | 18.142857 | 47 | py |
evaluate | evaluate-main/metrics/frugalscore/frugalscore.py | # Copyright 2022 The HuggingFace Datasets Authors and the current metric script contributor.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0... | 4,613 | 38.101695 | 231 | py |
evaluate | evaluate-main/metrics/rouge/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("rouge")
launch_gradio_widget(module)
| 127 | 17.285714 | 47 | py |
evaluate | evaluate-main/metrics/rouge/rouge.py | # Copyright 2020 The HuggingFace Evaluate Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 6,270 | 38.440252 | 152 | py |
evaluate | evaluate-main/metrics/roc_auc/roc_auc.py | # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | 9,539 | 48.6875 | 595 | py |
evaluate | evaluate-main/metrics/roc_auc/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("roc_auc")
launch_gradio_widget(module)
| 129 | 17.571429 | 47 | py |
evaluate | evaluate-main/metrics/f1/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("f1")
launch_gradio_widget(module)
| 124 | 16.857143 | 47 | py |
evaluate | evaluate-main/metrics/f1/f1.py | # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | 6,771 | 50.694656 | 508 | py |
evaluate | evaluate-main/metrics/indic_glue/indic_glue.py | # Copyright 2020 The HuggingFace Evaluate Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 6,252 | 34.936782 | 173 | py |
evaluate | evaluate-main/metrics/indic_glue/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("indic_glue", "wnli")
launch_gradio_widget(module)
| 140 | 19.142857 | 47 | py |
evaluate | evaluate-main/metrics/xnli/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("xnli")
launch_gradio_widget(module)
| 126 | 17.142857 | 47 | py |
evaluate | evaluate-main/metrics/xnli/xnli.py | # Copyright 2020 The HuggingFace Evaluate Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 2,948 | 32.134831 | 105 | py |
evaluate | evaluate-main/metrics/bleurt/app.py | import sys
import evaluate
from evaluate.utils import launch_gradio_widget
sys.path = [p for p in sys.path if p != "/home/user/app"]
module = evaluate.load("bleurt")
sys.path = ["/home/user/app"] + sys.path
launch_gradio_widget(module)
| 240 | 19.083333 | 57 | py |
evaluate | evaluate-main/metrics/bleurt/bleurt.py | # Copyright 2020 The HuggingFace Evaluate Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 5,195 | 40.238095 | 180 | py |
evaluate | evaluate-main/metrics/competition_math/competition_math.py | # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | 3,240 | 32.760417 | 104 | py |
evaluate | evaluate-main/metrics/competition_math/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("competition_math")
launch_gradio_widget(module)
| 138 | 18.857143 | 47 | py |
evaluate | evaluate-main/metrics/precision/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("precision")
launch_gradio_widget(module)
| 131 | 17.857143 | 47 | py |
evaluate | evaluate-main/metrics/precision/precision.py | # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | 7,546 | 50.691781 | 510 | py |
evaluate | evaluate-main/metrics/sari/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("sari")
launch_gradio_widget(module)
| 126 | 17.142857 | 47 | py |
evaluate | evaluate-main/metrics/sari/sari.py | # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | 12,063 | 40.6 | 133 | py |
evaluate | evaluate-main/metrics/recall/recall.py | # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | 7,363 | 53.147059 | 503 | py |
evaluate | evaluate-main/metrics/recall/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("recall")
launch_gradio_widget(module)
| 128 | 17.428571 | 47 | py |
evaluate | evaluate-main/metrics/trec_eval/trec_eval.py | # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | 5,514 | 38.392857 | 161 | py |
evaluate | evaluate-main/metrics/trec_eval/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("trec_eval")
launch_gradio_widget(module)
| 131 | 17.857143 | 47 | py |
evaluate | evaluate-main/metrics/character/character.py | # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | 7,987 | 45.988235 | 118 | py |
evaluate | evaluate-main/metrics/character/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("character")
launch_gradio_widget(module)
| 131 | 17.857143 | 47 | py |
evaluate | evaluate-main/metrics/mse/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("mse")
launch_gradio_widget(module)
| 125 | 17 | 47 | py |
evaluate | evaluate-main/metrics/mse/mse.py | # Copyright 2022 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | 4,546 | 36.891667 | 113 | py |
evaluate | evaluate-main/metrics/poseval/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("poseval")
launch_gradio_widget(module)
| 130 | 15.375 | 47 | py |
evaluate | evaluate-main/metrics/poseval/poseval.py | # Copyright 2022 The HuggingFace Evaluate Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 4,456 | 38.096491 | 120 | py |
evaluate | evaluate-main/metrics/bleu/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("bleu")
launch_gradio_widget(module)
| 126 | 17.142857 | 47 | py |
evaluate | evaluate-main/metrics/bleu/tokenizer_13a.py | # Source: https://github.com/mjpost/sacrebleu/blob/master/sacrebleu/tokenizers/tokenizer_13a.py
# Copyright 2020 SacreBLEU Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# htt... | 3,344 | 32.118812 | 109 | py |
evaluate | evaluate-main/metrics/bleu/bleu.py | # Copyright 2020 The HuggingFace Evaluate Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 5,931 | 43.268657 | 206 | py |
evaluate | evaluate-main/metrics/ter/ter.py | # Copyright 2021 The HuggingFace Evaluate Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 9,991 | 45.910798 | 152 | py |
evaluate | evaluate-main/metrics/ter/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("ter")
launch_gradio_widget(module)
| 125 | 17 | 47 | py |
evaluate | evaluate-main/metrics/nist_mt/tests.py | from _pytest.fixtures import fixture
from nist_mt import Nist_mt
nist = Nist_mt()
@fixture
def hypothesis_sent():
return "It is a guide to action which ensures that the military always obeys the commands of the party"
@fixture
def reference_sent1():
return "It is a guide to action that ensures that the mi... | 963 | 26.542857 | 118 | py |
evaluate | evaluate-main/metrics/nist_mt/nist_mt.py | # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | 5,532 | 40.601504 | 131 | py |
evaluate | evaluate-main/metrics/nist_mt/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("nist_mt")
launch_gradio_widget(module)
| 129 | 17.571429 | 47 | py |
evaluate | evaluate-main/metrics/smape/smape.py | # Copyright 2022 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | 6,651 | 40.836478 | 247 | py |
evaluate | evaluate-main/metrics/smape/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("smape")
launch_gradio_widget(module)
| 127 | 17.285714 | 47 | py |
evaluate | evaluate-main/metrics/brier_score/brier_score.py | # Copyright 2022 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | 5,019 | 36.185185 | 143 | py |
evaluate | evaluate-main/metrics/brier_score/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("brier_score")
launch_gradio_widget(module)
| 133 | 18.142857 | 47 | py |
evaluate | evaluate-main/metrics/mahalanobis/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("mahalanobis")
launch_gradio_widget(module)
| 133 | 18.142857 | 47 | py |
evaluate | evaluate-main/metrics/mahalanobis/mahalanobis.py | # Copyright 2021 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | 3,602 | 34.673267 | 119 | py |
evaluate | evaluate-main/metrics/mean_iou/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("mean_iou")
launch_gradio_widget(module)
| 130 | 17.714286 | 47 | py |
evaluate | evaluate-main/metrics/mean_iou/mean_iou.py | # Copyright 2022 The HuggingFace Evaluate Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 13,077 | 40.51746 | 367 | py |
evaluate | evaluate-main/metrics/r_squared/app.py | import evaluate
from evaluate.utils import launch_gradio_widget
module = evaluate.load("r_squared")
launch_gradio_widget(module)
| 131 | 17.857143 | 47 | py |
evaluate | evaluate-main/metrics/r_squared/r_squared.py | # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | 4,204 | 35.25 | 246 | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.