repo stringlengths 1 99 | file stringlengths 13 215 | code stringlengths 12 59.2M | file_length int64 12 59.2M | avg_line_length float64 3.82 1.48M | max_line_length int64 12 2.51M | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/optimization_tf.py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# 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 applica... | 15,340 | 44.253687 | 126 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_tf_pytorch_utils.py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# 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 cop... | 15,847 | 41.487936 | 155 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_distilbert.py | # coding=utf-8
# Copyright 2019-present, the HuggingFace Inc. team, The Google AI Language Team and Facebook, Inc.
#
# 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.or... | 43,849 | 45.698616 | 168 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_tf_xlm_roberta.py | # coding=utf-8
# Copyright 2019 Facebook AI Research and the HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# 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 Licens... | 6,000 | 39.547297 | 226 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_tf_gpt2.py | # coding=utf-8
# Copyright 2018 The OpenAI Team Authors and HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# 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... | 35,050 | 47.146978 | 169 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_tf_transfo_xl.py | # coding=utf-8
# Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Lice... | 36,614 | 40.466591 | 160 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_tf_t5.py | # coding=utf-8
# Copyright 2018 T5 Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# 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
#
# ... | 57,291 | 46.862991 | 261 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_tf_auto.py | # coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#
# 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... | 81,157 | 59.161601 | 472 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_utils.py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors, Facebook AI Research authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the L... | 62,679 | 48.746032 | 472 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_tf_openai.py | # coding=utf-8
# Copyright 2018 The OpenAI Team Authors and HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# 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... | 31,666 | 46.835347 | 169 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/testing_utils.py | import os
import unittest
from distutils.util import strtobool
from transformers.file_utils import _tf_available, _torch_available
SMALL_MODEL_IDENTIFIER = "julien-c/bert-xsmall-dummy"
DUMMY_UNKWOWN_IDENTIFIER = "julien-c/dummy-unknown"
# Used to test Auto{Config, Model, Tokenizer} model_type detection.
def parse_... | 3,342 | 26.628099 | 84 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_tf_flaubert.py | # coding=utf-8
# Copyright 2019-present, Facebook, Inc and the HuggingFace Inc. team.
#
# 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
#
# Un... | 17,526 | 46.115591 | 159 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_bert.py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# 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 cop... | 72,439 | 45.140127 | 168 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/convert_graph_to_onnx.py | from argparse import ArgumentParser
from os import listdir, makedirs
from os.path import abspath, dirname, exists
from typing import Dict, List, Optional, Tuple
from transformers import is_tf_available, is_torch_available
from transformers.pipelines import Pipeline, pipeline
from transformers.tokenization_utils import... | 9,292 | 35.731225 | 118 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_gpt2.py | # coding=utf-8
# Copyright 2018 The OpenAI Team Authors and HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# 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... | 35,428 | 45.373037 | 177 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_flaubert.py | # coding=utf-8
# Copyright 2019-present CNRS, Facebook Inc. and the HuggingFace Inc. team.
#
# 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
#... | 16,462 | 43.374663 | 168 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/tokenization_utils_base.py | # coding=utf-8
# Copyright 2020 The HuggingFace Inc. team.
#
# 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... | 109,570 | 46.269629 | 372 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/convert_albert_original_tf_checkpoint_to_pytorch.py | # coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#
# 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... | 2,163 | 33.903226 | 117 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_openai.py | # coding=utf-8
# Copyright 2018 The OpenAI Team Authors and HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# 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... | 32,451 | 46.168605 | 177 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/convert_t5_original_tf_checkpoint_to_pytorch.py | # coding=utf-8
# Copyright 2018 The T5 authors and HuggingFace Inc. team.
#
# 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 require... | 2,100 | 32.887097 | 117 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/pipelines.py | # coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#
# 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... | 82,234 | 42.579756 | 183 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_tf_mobilebert.py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# 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 cop... | 68,613 | 46.748086 | 161 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/tokenization_marian.py | import json
import re
import warnings
from pathlib import Path
from shutil import copyfile
from typing import Dict, List, Optional, Tuple, Union
import sentencepiece
from .tokenization_utils import BatchEncoding, PreTrainedTokenizer
vocab_files_names = {
"source_spm": "source.spm",
"target_spm": "target.spm... | 9,494 | 38.5625 | 130 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/convert_gpt2_original_tf_checkpoint_to_pytorch.py | # coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#
# 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... | 2,507 | 35.882353 | 119 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_tf_roberta.py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# 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 cop... | 34,371 | 47.005587 | 222 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/convert_electra_original_tf_checkpoint_to_pytorch.py | # coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#
# 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... | 2,853 | 34.675 | 117 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_electra.py | import logging
import os
import warnings
import torch
import torch.nn as nn
from torch.nn import CrossEntropyLoss, MSELoss
from .activations import get_activation
from .configuration_electra import ElectraConfig
from .file_utils import add_code_sample_docstrings, add_start_docstrings, add_start_docstrings_to_callable... | 43,346 | 45.811015 | 168 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/convert_roberta_original_pytorch_checkpoint_to_pytorch.py | # coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#
# 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... | 7,917 | 44.768786 | 117 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/tokenization_bert.py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
#
# 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/LICEN... | 29,551 | 42.97619 | 183 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/convert_transfo_xl_original_tf_checkpoint_to_pytorch.py | # coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#
# 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... | 4,913 | 38 | 121 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/convert_mobilebert_original_tf_checkpoint_to_pytorch.py | import argparse
import logging
import torch
from transformers import MobileBertConfig, MobileBertForPreTraining, load_tf_weights_in_mobilebert
logging.basicConfig(level=logging.INFO)
def convert_tf_checkpoint_to_pytorch(tf_checkpoint_path, mobilebert_config_file, pytorch_dump_path):
# Initialise PyTorch model... | 1,573 | 35.604651 | 117 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_tf_transfo_xl_utilities.py | # coding=utf-8
# Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Lice... | 7,702 | 42.03352 | 118 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/generation_tf_utils.py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# 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 cop... | 53,864 | 48.057377 | 246 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/trainer_tf.py | """Tensorflow trainer class."""
import logging
import math
import os
from typing import Callable, Dict, Optional, Tuple
import numpy as np
import tensorflow as tf
from .modeling_tf_utils import TFPreTrainedModel
from .optimization_tf import GradientAccumulator, create_optimizer
from .trainer_utils import PREFIX_CHEC... | 23,739 | 40.143847 | 131 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/convert_bart_original_pytorch_checkpoint_to_pytorch.py | # coding=utf-8
# Copyright 2020 The HuggingFace Inc. team.
#
# 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... | 6,080 | 37.732484 | 117 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_t5.py | # coding=utf-8
# Copyright 2018 Mesh TensorFlow authors, T5 Authors and HuggingFace Inc. team.
#
# 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... | 55,927 | 45.684474 | 269 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_tf_electra.py | import logging
import tensorflow as tf
from transformers import ElectraConfig
from .file_utils import add_code_sample_docstrings, add_start_docstrings, add_start_docstrings_to_callable
from .modeling_tf_bert import ACT2FN, TFBertEncoder, TFBertPreTrainedModel
from .modeling_tf_utils import (
TFQuestionAnsweringL... | 35,397 | 45.884768 | 161 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_tf_xlnet.py | # coding=utf-8
# Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Lice... | 74,118 | 47.191808 | 171 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/convert_marian_to_pytorch.py | import argparse
import json
import os
import shutil
import warnings
from pathlib import Path
from typing import Dict, List, Union
from zipfile import ZipFile
import numpy as np
import torch
from tqdm import tqdm
from transformers import MarianConfig, MarianMTModel, MarianTokenizer
from transformers.hf_api import HfAp... | 20,856 | 37.624074 | 239 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/convert_openai_original_tf_checkpoint_to_pytorch.py | # coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#
# 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... | 2,641 | 34.702703 | 118 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/training_args.py | import dataclasses
import json
import logging
import os
from dataclasses import dataclass, field
from typing import Any, Dict, Optional, Tuple
from .file_utils import cached_property, is_torch_available, is_torch_tpu_available, torch_required
if is_torch_available():
import torch
if is_torch_tpu_available():
... | 14,750 | 45.828571 | 119 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/generation_utils.py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors, Facebook AI Research authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the L... | 48,035 | 47.325956 | 246 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_xlm_roberta.py | # coding=utf-8
# Copyright 2019 Facebook AI Research and the HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# 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 Licens... | 5,333 | 37.1 | 151 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_camembert.py | # coding=utf-8
# Copyright 2019 Inria, Facebook AI Research and the HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# 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... | 5,208 | 36.746377 | 151 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/convert_xlm_original_pytorch_checkpoint_to_pytorch.py | # coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#
# 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... | 2,970 | 36.1375 | 117 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/convert_dialogpt_original_pytorch_checkpoint_to_pytorch.py | import argparse
import os
import torch
from transformers.file_utils import WEIGHTS_NAME
DIALOGPT_MODELS = ["small", "medium", "large"]
OLD_KEY = "lm_head.decoder.weight"
NEW_KEY = "lm_head.weight"
def convert_dialogpt_checkpoint(checkpoint_path: str, pytorch_dump_folder_path: str):
d = torch.load(checkpoint_... | 923 | 27.875 | 85 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_reformer.py | # coding=utf-8
# Copyright 2020 The Trax Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# 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... | 85,258 | 42.060101 | 251 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_tf_xlm.py | # coding=utf-8
# Copyright 2019-present, Facebook, Inc and the HuggingFace Inc. team.
#
# 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
#
# Un... | 53,496 | 45.681501 | 160 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_bart.py | # coding=utf-8
# Copyright 2020 The Facebook AI Research Team Authors and The HuggingFace Inc. team.
#
# 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/LIC... | 55,894 | 42.531931 | 207 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/file_utils.py | """
Utilities for working with the local dataset cache.
This file is adapted from the AllenNLP library at https://github.com/allenai/allennlp
Copyright by the AllenNLP authors.
"""
import fnmatch
import json
import logging
import os
import shutil
import sys
import tarfile
import tempfile
from contextlib import context... | 28,891 | 34.713226 | 144 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_tf_ctrl.py | # coding=utf-8
# Copyright 2018 Salesforce and HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# 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
#
# h... | 27,808 | 45.816498 | 169 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/activations.py | import logging
import math
import torch
import torch.nn.functional as F
logger = logging.getLogger(__name__)
def swish(x):
return x * torch.sigmoid(x)
def _gelu_python(x):
""" Original Implementation of the gelu activation function in Google Bert repo when initially created.
For information: Open... | 1,537 | 25.982456 | 115 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/__init__.py | # flake8: noqa
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
__version__ = "3.0.2"
# Work around to update TensorFlow's absl.logging threshold which alters the
# default Python logging output behavior when pre... | 21,111 | 32.564388 | 114 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/tokenization_bart.py | # coding=utf-8
# Copyright 2020 The Facebook AI Research Team Authors and The HuggingFace Inc. team.
#
# 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/LIC... | 6,826 | 37.139665 | 115 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_tf_bert.py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# 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 cop... | 61,255 | 46.083782 | 161 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_mobilebert.py | # MIT License
#
# Copyright (c) 2020 The Google AI Language Team Authors, The HuggingFace Inc. team and github/lonePatient
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restricti... | 73,298 | 46.137621 | 168 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/trainer_utils.py | import os
import random
from typing import Dict, NamedTuple, Optional
import numpy as np
from .file_utils import is_tf_available, is_torch_available
try:
import wandb
wandb.ensure_configured()
if wandb.api.api_key is None:
_has_wandb = False
wandb.termwarn("W&B installed but not logged ... | 1,728 | 22.364865 | 116 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_retribert.py | # coding=utf-8
# Copyright 2019-present, the HuggingFace Inc. team, The Google AI Language Team and Facebook, Inc.
#
# 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.or... | 8,679 | 45.666667 | 142 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/convert_bert_original_tf_checkpoint_to_pytorch.py | # coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#
# 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... | 2,139 | 33.516129 | 117 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_tf_distilbert.py | # coding=utf-8
# Copyright 2019-present, the HuggingFace Inc. team, The Google AI Language Team and Facebook, Inc.
#
# 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.or... | 49,701 | 45.407096 | 161 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/convert_bert_pytorch_checkpoint_to_original_tf.py | # coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#
# 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... | 4,115 | 35.424779 | 118 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_transfo_xl.py | # coding=utf-8
# Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Lice... | 44,389 | 41.84749 | 180 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/convert_xlnet_original_tf_checkpoint_to_pytorch.py | # coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#
# 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... | 3,685 | 31.052174 | 117 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_albert.py | # coding=utf-8
# Copyright 2018 Google AI, Google Brain and the HuggingFace Inc. team.
#
# 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
#
# U... | 54,975 | 45.043551 | 168 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_xlnet.py | # coding=utf-8
# Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Lice... | 81,031 | 45.677419 | 304 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_tf_camembert.py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# 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 cop... | 5,962 | 39.290541 | 224 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_xlm.py | # coding=utf-8
# Copyright 2019-present, Facebook, Inc and the HuggingFace Inc. team.
#
# 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
#
# Un... | 50,571 | 45.058288 | 197 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_tf_utils.py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# 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 cop... | 38,314 | 47.871173 | 472 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_ctrl.py | # coding=utf-8
# Copyright 2018 Salesforce and HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# 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
#
# h... | 25,514 | 43.373913 | 177 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/trainer.py | import logging
import math
import os
import re
import shutil
import warnings
from contextlib import contextmanager
from pathlib import Path
from typing import Any, Callable, Dict, List, Optional, Tuple, Union
import numpy as np
import torch
from packaging import version
from torch import nn
from torch.utils.data.datal... | 38,252 | 42.126268 | 131 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/tokenization_transfo_xl.py | # coding=utf-8
# Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Lice... | 29,741 | 36.364322 | 204 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_transfo_xl_utilities.py | # coding=utf-8
# Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Lice... | 10,697 | 41.792 | 132 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/convert_reformer_trax_checkpoint_to_pytorch.py | # coding=utf-8
# Copyright 2020 The HuggingFace Inc. team.
#
# 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... | 7,729 | 35.985646 | 118 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/convert_pytorch_checkpoint_to_tf2.py | # coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#
# 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... | 14,451 | 37.538667 | 126 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/modeling_roberta.py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# 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 cop... | 31,812 | 45.442336 | 168 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/commands/convert.py | from argparse import ArgumentParser, Namespace
from logging import getLogger
from transformers.commands import BaseTransformersCLICommand
def convert_command_factory(args: Namespace):
"""
Factory function used to convert a model TF 1.0 checkpoint in a PyTorch checkpoint.
:return: ServeCommand
"""
... | 7,143 | 43.930818 | 117 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/commands/train.py | import os
from argparse import ArgumentParser, Namespace
from logging import getLogger
from transformers import SingleSentenceClassificationProcessor as Processor
from transformers import TextClassificationPipeline, is_tf_available, is_torch_available
from transformers.commands import BaseTransformersCLICommand
if n... | 5,830 | 39.213793 | 117 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/commands/env.py | import platform
from argparse import ArgumentParser
from transformers import __version__ as version
from transformers import is_tf_available, is_torch_available
from transformers.commands import BaseTransformersCLICommand
def info_command_factory(_):
return EnvironmentCommand()
class EnvironmentCommand(BaseTra... | 2,027 | 33.372881 | 105 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/benchmark/benchmark.py | # coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# 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.a... | 10,307 | 38.953488 | 181 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/benchmark/benchmark_utils.py | """
Utilities for working with the local dataset cache.
This file is adapted from the AllenNLP library at https://github.com/allenai/allennlp
Copyright by the AllenNLP authors.
"""
import copy
import csv
import linecache
import logging
import os
import platform
import sys
from abc import ABC, abstractmethod
from colle... | 37,029 | 41.612198 | 206 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/benchmark/benchmark_args.py | # coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# 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.a... | 2,691 | 29.942529 | 112 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/data/data_collator.py | from dataclasses import dataclass
from typing import Any, Callable, Dict, List, NewType, Tuple
import torch
from torch.nn.utils.rnn import pad_sequence
from ..tokenization_utils import PreTrainedTokenizer
InputDataClass = NewType("InputDataClass", Any)
"""
A DataCollator is a function that takes a list of samples ... | 6,331 | 45.218978 | 165 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/data/datasets/glue.py | import logging
import os
import time
from dataclasses import dataclass, field
from enum import Enum
from typing import List, Optional, Union
import torch
from filelock import FileLock
from torch.utils.data.dataset import Dataset
from ...tokenization_bart import BartTokenizer, BartTokenizerFast
from ...tokenization_ro... | 5,345 | 35.367347 | 119 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/data/datasets/language_modeling.py | import logging
import os
import pickle
import time
import torch
from filelock import FileLock
from torch.utils.data.dataset import Dataset
from ...tokenization_utils import PreTrainedTokenizer
logger = logging.getLogger(__name__)
class TextDataset(Dataset):
"""
This will be superseded by a framework-agnos... | 3,885 | 37.098039 | 119 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/data/processors/squad.py | import json
import logging
import os
from functools import partial
from multiprocessing import Pool, cpu_count
import numpy as np
from tqdm import tqdm
from ...file_utils import is_tf_available, is_torch_available
from ...tokenization_bert import whitespace_tokenize
from .utils import DataProcessor
if is_torch_avai... | 31,376 | 38.368883 | 125 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/src/transformers/data/processors/utils.py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# 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 cop... | 13,867 | 38.850575 | 119 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/templates/adding_a_new_model/modeling_xxx.py | # coding=utf-8
# Copyright 2018 XXX 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 agreed ... | 33,999 | 44.822102 | 134 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/templates/adding_a_new_model/convert_xxx_original_tf_checkpoint_to_pytorch.py | # coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#
# 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... | 2,107 | 33 | 117 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/templates/adding_a_new_model/modeling_tf_xxx.py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# 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 cop... | 26,923 | 49.609023 | 193 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/templates/adding_a_new_model/tests/test_modeling_xxx.py | # coding=utf-8
# Copyright 2018 XXX 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 agreed... | 11,391 | 40.425455 | 119 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/templates/adding_a_new_example_script/run_xxx.py | # coding=utf-8
# Copyright 2018 XXX. All rights reserved.
#
# 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... | 29,261 | 40.565341 | 119 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/tests/test_modeling_tf_camembert.py | # coding=utf-8
# Copyright 2018 The Google AI Language Team 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 ... | 1,861 | 36.24 | 116 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/tests/test_trainer.py | import unittest
from transformers import AutoTokenizer, TrainingArguments, is_torch_available
from transformers.testing_utils import require_torch
if is_torch_available():
import torch
from transformers import (
Trainer,
LineByLineTextDataset,
AutoModelForSequenceClassification,
... | 6,834 | 44.566667 | 106 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/tests/test_trainer_distributed.py | # This test is meant to be run in torch.distributed,
# on a machine with multiple GPUs, in the following way:
#
# python -m torch.distributed.launch --nproc_per_node 2 ./tests/test_trainer_distributed.py
#
# Replace 2 with the number of GPUs you have.
#
# You can also run it as a standalone file to test identical beh... | 3,294 | 30.682692 | 100 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/tests/test_modeling_longformer.py | # coding=utf-8
# Copyright 2018 The Google AI Language Team 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 ... | 18,773 | 42.258065 | 119 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/tests/test_modeling_distilbert.py | # coding=utf-8
# Copyright 2018 The Google AI Language Team 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 ... | 11,817 | 40.612676 | 116 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/tests/test_modeling_bart.py | # coding=utf-8
# Copyright 2020 Huggingface
#
# 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 agreed ... | 50,925 | 67.54105 | 7,208 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/tests/test_modeling_xlm_roberta.py | # coding=utf-8
# Copyright 2018 The Google AI Language Team 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 ... | 2,902 | 42.984848 | 116 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/tests/test_modeling_t5.py | # coding=utf-8
# Copyright 2018 Google T5 Authors and HuggingFace Inc. team.
#
# 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 requ... | 40,342 | 80.831643 | 7,207 | py |
TextSiM | TextSiM-main/MNLI_evaluation_scripts/transformers-3.0.2/tests/test_tokenization_common.py | # coding=utf-8
# Copyright 2019 HuggingFace Inc.
#
# 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 ag... | 76,959 | 49.698287 | 137 | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.