python_code
stringlengths
0
1.02M
repo_name
stringlengths
9
48
file_path
stringlengths
5
114
"""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...
nlp-master
metrics/squad_v2/evaluate.py
# coding=utf-8 # Copyright 2020 The HuggingFace NLP 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 applicab...
nlp-master
metrics/squad/squad.py
""" Official evaluation script for v1.1 of the SQuAD dataset. """ from __future__ import print_function from collections import Counter import string import re import argparse import json import sys def normalize_answer(s): """Lower text and remove punctuation, articles and extra whitespace.""" def remove_art...
nlp-master
metrics/squad/evaluate.py
# coding=utf-8 # Copyright 2020 The HuggingFace NLP 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 applicab...
nlp-master
metrics/rouge/rouge.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/super_glue/super_glue.py
"""TODO(math_qa): Add a description here.""" from __future__ import absolute_import, division, print_function import json import os import nlp # TODO(math_qa): BibTeX citation _CITATION = """ """ # TODO(math_qa): _DESCRIPTION = """ Our dataset is gathered by using a new representation language to annotate over th...
nlp-master
datasets/math_qa/math_qa.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/anli/anli.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/wmt18/wmt_utils.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/wmt18/wmt18.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/ted_hrlr/ted_hrlr.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/yelp_polarity/yelp_polarity.py
from __future__ import absolute_import, division, print_function import glob import logging import os import nlp _CITATION = """\ @inproceedings{schler2006effects, title={Effects of age and gender on blogging.}, author={Schler, Jonathan and Koppel, Moshe and Argamon, Shlomo and Pennebaker, James W}, boo...
nlp-master
datasets/blog_authorship_corpus/blog_authorship_corpus.py
"""TODO(kor_nli): Add a description here.""" from __future__ import absolute_import, division, print_function import csv import os import nlp # TODO(kor_nli): BibTeX citation _CITATION = """\ @article{ham2020kornli, title={KorNLI and KorSTS: New Benchmark Datasets for Korean Natural Language Understanding}, au...
nlp-master
datasets/kor_nli/kor_nli.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/rotten_tomatoes/rotten_tomatoes.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/tiny_shakespeare/tiny_shakespeare.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/wmt16/wmt16.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/wmt16/wmt_utils.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/glue/glue.py
"""TODO(blended_skill_talk): Add a description here.""" from __future__ import absolute_import, division, print_function import json import os import nlp # TODO(blended_skill_talk): BibTeX citation _CITATION = """\ @misc{smith2020evaluating, title={Can You Put it All Together: Evaluating Conversational Agents'...
nlp-master
datasets/blended_skill_talk/blended_skill_talk.py
"""TODO(cosmos_qa): Add a description here.""" from __future__ import absolute_import, division, print_function import csv import json import os import nlp # TODO(cosmos_qa): BibTeX citation _CITATION = """\ @inproceedings{cosmos, title={COSMOS QA: Machine Reading Comprehension with Contextual Commonsense ...
nlp-master
datasets/cosmos_qa/cosmos_qa.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/blimp/blimp.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/wmt17/wmt17.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/wmt17/wmt_utils.py
"""TODO(sciQ): Add a description here.""" from __future__ import absolute_import, division, print_function import json import os import nlp # TODO(sciQ): BibTeX citation _CITATION = """\ @inproceedings{SciQ, title={Crowdsourcing Multiple Choice Science Questions}, author={Johannes Welbl, Nelson F. Liu, Mat...
nlp-master
datasets/sciq/sciq.py
"""TODO(cmrc2018): Add a description here.""" from __future__ import absolute_import, division, print_function import json import os import nlp # TODO(cmrc2018): BibTeX citation _CITATION = """\ @inproceedings{cui-emnlp2019-cmrc2018, title = {A Span-Extraction Dataset for {C}hinese Machine Reading Comprehensio...
nlp-master
datasets/cmrc2018/cmrc2018.py
"""TODO(break_data): Add a description here.""" from __future__ import absolute_import, division, print_function import csv import json import os import textwrap import six import nlp # TODO(break): BibTeX citation _CITATION = """\ @article{Wolfson2020Break, title={Break It Down: A Question Understanding Benchm...
nlp-master
datasets/break_data/break_data.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/wmt19/wmt_utils.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/wmt19/wmt19.py
"""TODO(wiki_qa): Add a description here.""" from __future__ import absolute_import, division, print_function import csv import os import nlp # TODO(wiki_qa): BibTeX citation _CITATION = """\ @InProceedings{YangYihMeek:EMNLP2015:WikiQA, author = {{Yi}, Yang and {Wen-tau}, Yih and {Christopher} Meek}, ...
nlp-master
datasets/wiki_qa/wiki_qa.py
"""TODO(sciTail): Add a description here.""" from __future__ import absolute_import, division, print_function import csv import json import os import textwrap import nlp # TODO(sciTail): BibTeX citation _CITATION = """\ inproceedings{scitail, Author = {Tushar Khot and Ashish Sabharwal and Peter Clark}, B...
nlp-master
datasets/scitail/scitail.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/librispeech_lm/librispeech_lm.py
"""TODO(xcopa): Add a description here.""" from __future__ import absolute_import, division, print_function import json import os import nlp # TODO(xcopa): BibTeX citation _CITATION = """\ @article{ponti2020xcopa, title={{XCOPA: A} Multilingual Dataset for Causal Commonsense Reasoning}, author={Edoardo M. Po...
nlp-master
datasets/xcopa/xcopa.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/wikipedia/wikipedia.py
"""TODO(lc_quad): Add a description here.""" from __future__ import absolute_import, division, print_function import json import os import nlp # TODO(lc_quad): BibTeX citation _CITATION = """ @inproceedings{dubey2017lc2, title={LC-QuAD 2.0: A Large Dataset for Complex Question Answering over Wikidata and DBpedia},...
nlp-master
datasets/lc_quad/lc_quad.py
"""ARCD: Arabic Reading Comprehension Dataset.""" from __future__ import absolute_import, division, print_function import json import logging import os import nlp _CITATION = """\ @inproceedings{mozannar-etal-2019-neural, title = {Neural {A}rabic Question Answering}, author = {Mozannar, Hussein and Maamar...
nlp-master
datasets/arcd/arcd.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/xnli/xnli.py
"""TODO(squad_v1_pt): Add a description here.""" from __future__ import absolute_import, division, print_function import json import os import nlp # TODO(squad_v1_pt): BibTeX citation _CITATION = """\ @article{2016arXiv160605250R, author = {{Rajpurkar}, Pranav and {Zhang}, Jian and {Lopyrev}, ...
nlp-master
datasets/squad_v1_pt/squad_v1_pt.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/scientific_papers/scientific_papers.py
"""TODO(art): Add a description here.""" from __future__ import absolute_import, division, print_function import json import os import nlp # TODO(art): BibTeX citation _CITATION = """\ @InProceedings{anli, author = {Chandra, Bhagavatula and Ronan, Le Bras and Chaitanya, Malaviya and Keisuke, Sakaguchi and Ari, H...
nlp-master
datasets/art/art.py
"""TODO(tydiqa): Add a description here.""" from __future__ import absolute_import, division, print_function import json import os import textwrap import nlp # TODO(tydiqa): BibTeX citation _CITATION = """\ @article{tydiqa, title = {TyDi QA: A Benchmark for Information-Seeking Question Answering in Typologically...
nlp-master
datasets/tydiqa/tydiqa.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/wiki40b/wiki40b.py
"""TODO(jeopardy): Add a description here.""" from __future__ import absolute_import, division, print_function import json import os import nlp # TODO(jeopardy): BibTeX citation _CITATION = """ """ # TODO(jeopardy): _DESCRIPTION = """ Dataset containing 216,930 Jeopardy questions, answers and other data. The jso...
nlp-master
datasets/jeopardy/jeopardy.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/snli/snli.py
"""TODO(coarse_discourse): Add a description here.""" from __future__ import absolute_import, division, print_function import json import os import nlp # TODO(coarse_discourse): BibTeX citation _CITATION = """\ @inproceedings{coarsediscourse, title={Characterizing Online Discussion Using Coarse Discourse Sequences...
nlp-master
datasets/coarse_discourse/coarse_discourse.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/natural_questions/natural_questions.py
"""TODO(empathetic_dialogues): Add a description here.""" from __future__ import absolute_import, division, print_function import csv import os import nlp _CITATION = """\ @inproceedings{rashkin2019towards, title = {Towards Empathetic Open-domain Conversation Models: a New Benchmark and Dataset}, author = {Han...
nlp-master
datasets/empathetic_dialogues/empathetic_dialogues.py
"""TODO(reclor): Add a description here.""" from __future__ import absolute_import, division, print_function import json import os import nlp # TODO(reclor): BibTeX citation _CITATION = """\ @inproceedings{yu2020reclor, author = {Yu, Weihao and Jiang, Zihang and Dong, Yanfei and Feng, Jiashi}, titl...
nlp-master
datasets/reclor/reclor.py
"""PG-19 language modeling benchmark - a set of books extracted from the Project Gutenberg books library""" from __future__ import absolute_import, division, print_function import csv import json import os from operator import itemgetter import requests import nlp # TODO(pg19): BibTeX citation _CITATION = """\ @a...
nlp-master
datasets/pg19/pg19.py
"""TODO(com_qa): Add a description here.""" from __future__ import absolute_import, division, print_function import json import os import nlp # TODO(com_qa): BibTeX citation _CITATION = """\ @inproceedings{abujabal-etal-2019-comqa, title = "{ComQA: A Community-sourced Dataset for Complex Factoid Question Answe...
nlp-master
datasets/com_qa/com_qa.py
"""TODO(wiki_split): Add a description here.""" from __future__ import absolute_import, division, print_function import csv import os import nlp # TODO(wiki_split): BibTeX citation _CITATION = """\ @InProceedings{BothaEtAl2018, title = {{Learning To Split and Rephrase From Wikipedia Edit History}}, author = {B...
nlp-master
datasets/wiki_split/wiki_split.py
from __future__ import absolute_import, division, print_function import gzip import json import os import nlp class CompguesswhatConfig(nlp.BuilderConfig): """ BuilderConfig for CompGuessWhat?!""" def __init__(self, data_url, splits, gameplay_scenario, **kwargs): """ Args: game...
nlp-master
datasets/compguesswhat/compguesswhat.py
import gzip import json import os from argparse import ArgumentParser parser = ArgumentParser() parser.add_argument( "-d", "--data_path", type=str, required=True, help="Data path containing the CompGuessWhat?! datasets (files with 'jsonl.gz' extension)", ) parser.add_argument("--examples", type=in...
nlp-master
datasets/compguesswhat/create_dummy_data.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/cos_e/cos_e.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/trivia_qa/trivia_qa.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/scicite/scicite.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/qa4mre/qa4mre.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/scan/scan.py
"""TODO(xquad): Add a description here.""" from __future__ import absolute_import, division, print_function import json import nlp _CITATION = """\ @article{Artetxe:etal:2019, author = {Mikel Artetxe and Sebastian Ruder and Dani Yogatama}, title = {On the cross-lingual transferability of monolin...
nlp-master
datasets/xquad/xquad.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/newsroom/newsroom.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/cnn_dailymail/cnn_dailymail.py
"""TODO(squad_it): Add a description here.""" from __future__ import absolute_import, division, print_function import json import os import nlp # TODO(squad_it): BibTeX citation _CITATION = """\ @InProceedings{10.1007/978-3-030-03840-3_29, author={Croce, Danilo and Zelenanska, Alexandra and Basili, Roberto}, edi...
nlp-master
datasets/squad_it/squad_it.py
"""TODO(arc): Add a description here.""" from __future__ import absolute_import, division, print_function import json import os import nlp # TODO(ai2_arc): BibTeX citation _CITATION = """\ @article{allenai:arc, author = {Peter Clark and Isaac Cowhey and Oren Etzioni and Tushar Khot and ...
nlp-master
datasets/ai2_arc/ai2_arc.py
"""TODO(quarel): Add a description here.""" from __future__ import absolute_import, division, print_function import json import os import nlp # TODO(quarel): BibTeX citation _CITATION = """\ @inproceedings{quarel_v1, title={QuaRel: A Dataset and Models for Answering Questions about Qualitative Relationships}, ...
nlp-master
datasets/quarel/quarel.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/gigaword/gigaword.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/xsum/xsum.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/bookcorpus/bookcorpus.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/civil_comments/civil_comments.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/piaf/piaf.py
"""TODO(event2Mind): Add a description here.""" from __future__ import absolute_import, division, print_function import csv import os import nlp # TODO(event2Mind): BibTeX citation _CITATION = """\ @inproceedings{event2Mind, title={Event2Mind: Commonsense Inference on Events, Intents, and Reactions}, autho...
nlp-master
datasets/event2Mind/event2Mind.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/flores/flores.py
"""qanta dataset.""" from __future__ import absolute_import, division, print_function import json from typing import List, Tuple import nlp _CITATION = """ @article{Rodriguez2019QuizbowlTC, title={Quizbowl: The Case for Incremental Question Answering}, author={Pedro Rodriguez and Shi Feng and Mohit Iyyer and H...
nlp-master
datasets/qanta/qanta.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/multi_nli_mismatch/multi_nli_mismatch.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/wmt15/wmt15.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/wmt15/wmt_utils.py
"""TODO(winogrande): Add a description here.""" from __future__ import absolute_import, division, print_function import csv import json import os import nlp # TODO(winogrande): BibTeX citation _CITATION = """\ @InProceedings{ai2:winogrande, title = {WinoGrande: An Adversarial Winograd Schema Challenge at Scale}, a...
nlp-master
datasets/winogrande/winogrande.py
"""TODO(x_stance): Add a description here.""" from __future__ import absolute_import, division, print_function import json import os import nlp # TODO(x_stance): BibTeX citation _CITATION = """\ @inproceedings{vamvas2020xstance, author = "Vamvas, Jannis and Sennrich, Rico", title = "{X-Stance}: A Mu...
nlp-master
datasets/x_stance/x_stance.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/wmt_t2t/wmt_t2t.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/wmt_t2t/wmt_utils.py
"""TODO(boolq): Add a description here.""" from __future__ import absolute_import, division, print_function import json import os import tensorflow as tf import nlp # TODO(boolq): BibTeX citation _CITATION = """\ @inproceedings{clark2019boolq, title = {BoolQ: Exploring the Surprising Difficulty of Natural Y...
nlp-master
datasets/boolq/boolq.py
# coding=utf-8 # Copyright 2020 Facebook, Inc. and the HuggingFace NLP 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 r...
nlp-master
datasets/eli5/eli5.py
"""TODO(openBookQA): Add a description here.""" from __future__ import absolute_import, division, print_function import json import os import textwrap import nlp # TODO(openBookQA): BibTeX citation _CITATION = """\ @inproceedings{OpenBookQA2018, title={Can a Suit of Armor Conduct Electricity? A New Dataset for Op...
nlp-master
datasets/openbookqa/openbookqa.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/wmt14/wmt14.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/wmt14/wmt_utils.py
"""TODO(qangaroo): Add a description here.""" from __future__ import absolute_import, division, print_function import json import os import nlp # TODO(qangaroo): BibTeX citation _CITATION = """ """ # TODO(quangaroo): _DESCRIPTION = """\ We have created two new Reading Comprehension datasets focussing on multi-...
nlp-master
datasets/qangaroo/qangaroo.py
"""TODO(social_i_qa): Add a description here.""" from __future__ import absolute_import, division, print_function import json import os import nlp # TODO(social_i_qa): BibTeX citation _CITATION = """ """ # TODO(social_i_qa): _DESCRIPTION = """\ We introduce Social IQa: Social Interaction QA, a new question-answer...
nlp-master
datasets/social_i_qa/social_i_qa.py
"""TODO(drop): Add a description here.""" from __future__ import absolute_import, division, print_function import json import os import nlp # TODO(drop): BibTeX citation _CITATION = """\ @inproceedings{Dua2019DROP, author={Dheeru Dua and Yizhong Wang and Pradeep Dasigi and Gabriel Stanovsky and Sameer Singh and ...
nlp-master
datasets/drop/drop.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/movie_rationales/movie_rationales.py
# coding=utf-8 from dataclasses import dataclass import pyarrow as pa import pyarrow.json as paj import nlp @dataclass class JsonConfig(nlp.BuilderConfig): """BuilderConfig for JSON.""" read_options: paj.ReadOptions = paj.ReadOptions() parse_options: paj.ParseOptions = paj.ParseOptions() @propert...
nlp-master
datasets/json/json.py
# coding=utf-8 # Copyright 2020 HuggingFace NLP 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 l...
nlp-master
datasets/germeval_14/germeval_14.py
"""Allocine Dataset: A Large-Scale French Movie Reviews Dataset.""" from __future__ import absolute_import, division, print_function import json import os import nlp _CITATION = """\ @misc{blard2019allocine, author = {Blard, Theophile}, title = {french-sentiment-analysis-with-bert}, year = {2020}, publishe...
nlp-master
datasets/allocine/allocine.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/multi_nli/multi_nli.py
"""TODO(ubuntu_dialogs_corpus): Add a description here.""" from __future__ import absolute_import, division, print_function import csv import os import nlp # TODO(ubuntu_dialogs_corpus): BibTeX citation _CITATION = """\ @article{DBLP:journals/corr/LowePSP15, author = {Ryan Lowe and Nissan Pow a...
nlp-master
datasets/ubuntu_dialogs_corpus/ubuntu_dialogs_corpus.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/gap/gap.py
"""TODO(discofuse): Add a description here.""" from __future__ import absolute_import, division, print_function import csv import os import tensorflow as tf import nlp # TODO(discofuse): BibTeX citation _URL_ = "https://storage.googleapis.com/discofuse_dataset_v1/" _CITATION = """\ @InProceedings{GevaEtAl2019, ...
nlp-master
datasets/discofuse/discofuse.py
"""TODO(qasc): Add a description here.""" from __future__ import absolute_import, division, print_function import json import os import nlp # TODO(qasc): BibTeX citation _CITATION = """\ @article{allenai:qasc, author = {Tushar Khot and Peter Clark and Michal Guerquin and Peter Jansen and Ashish Sabharwal}...
nlp-master
datasets/qasc/qasc.py
"""TODO(xtreme): Add a description here.""" from __future__ import absolute_import, division, print_function import csv import glob import json import os import textwrap import six import nlp # TODO(xtreme): BibTeX citation _CITATION = """\ @article{hu2020xtreme, author = {Junjie Hu and Sebastian Ruder a...
nlp-master
datasets/xtreme/xtreme.py
"""TODO(quoref): Add a description here.""" from __future__ import absolute_import, division, print_function import json import os import nlp # TODO(quoref): BibTeX citation _CITATION = """\ @article{allenai:quoref, author = {Pradeep Dasigi and Nelson F. Liu and Ana Marasovic and Noah A. Smith and Matt G...
nlp-master
datasets/quoref/quoref.py
# coding=utf-8 from dataclasses import dataclass import pyarrow.csv as pac import nlp @dataclass class CsvConfig(nlp.BuilderConfig): """BuilderConfig for CSV.""" skip_rows: int = 0 header_as_column_names: bool = True delimiter: str = "," quote_char: str = '"' read_options: pac.ReadOptions ...
nlp-master
datasets/csv/csv.py
"""TODO(squad_v2): Add a description here.""" from __future__ import absolute_import, division, print_function import json import os import nlp # TODO(squad_v2): BibTeX citation _CITATION = """\ @article{2016arXiv160605250R, author = {{Rajpurkar}, Pranav and {Zhang}, Jian and {Lopyrev}, Kon...
nlp-master
datasets/squad_v2/squad_v2.py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
nlp-master
datasets/squad/squad.py