Skip to content

Commit

Permalink
Apply quality and style requirements once again
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Plu authored and LysandreJik committed Jan 29, 2020
1 parent 5e3c728 commit ca1d667
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/transformers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
from .configuration_roberta import ROBERTA_PRETRAINED_CONFIG_ARCHIVE_MAP, RobertaConfig
from .configuration_t5 import T5_PRETRAINED_CONFIG_ARCHIVE_MAP, T5Config
from .configuration_transfo_xl import TRANSFO_XL_PRETRAINED_CONFIG_ARCHIVE_MAP, TransfoXLConfig

# Configurations
from .configuration_utils import PretrainedConfig
from .configuration_xlm import XLM_PRETRAINED_CONFIG_ARCHIVE_MAP, XLMConfig
Expand All @@ -55,6 +56,7 @@
xnli_processors,
xnli_tasks_num_labels,
)

# Files and general utilities
from .file_utils import (
CONFIG_NAME,
Expand All @@ -71,8 +73,10 @@
is_tf_available,
is_torch_available,
)

# Model Cards
from .modelcard import ModelCard

# TF 2.0 <=> PyTorch conversion utilities
from .modeling_tf_pytorch_utils import (
convert_tf_weight_name_to_pt_weight_name,
Expand All @@ -83,6 +87,7 @@
load_tf2_model_in_pytorch_model,
load_tf2_weights_in_pytorch_model,
)

# Pipelines
from .pipelines import (
CsvPipelineDataFormat,
Expand All @@ -108,6 +113,7 @@
from .tokenization_roberta import RobertaTokenizer
from .tokenization_t5 import T5Tokenizer
from .tokenization_transfo_xl import TransfoXLCorpus, TransfoXLTokenizer

# Tokenizers
from .tokenization_utils import PreTrainedTokenizer
from .tokenization_xlm import XLMTokenizer
Expand Down
3 changes: 1 addition & 2 deletions src/transformers/modeling_tf_camembert.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@

logger = logging.getLogger(__name__)

TF_CAMEMBERT_PRETRAINED_MODEL_ARCHIVE_MAP = {
}
TF_CAMEMBERT_PRETRAINED_MODEL_ARCHIVE_MAP = {}


CAMEMBERT_START_DOCSTRING = r""" The CamemBERT model was proposed in
Expand Down
1 change: 1 addition & 0 deletions templates/adding_a_new_example_script/run_xxx.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
write_predictions,
write_predictions_extended,
)

# The follwing import is the official SQuAD evaluation script (2.0).
# You can remove it from the dependencies if you are using this script outside of the library
# We've added it here for automated tests (see examples/test_examples.py file)
Expand Down
1 change: 1 addition & 0 deletions templates/adding_a_new_example_script/utils_xxx.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import math

from transformers.tokenization_bert import BasicTokenizer, whitespace_tokenize

# Required by XLNet evaluation method to compute optimal threshold (see write_predictions_extended() method)
from utils_squad_evaluate import find_all_best_thresh_v2, get_raw_scores, make_qid_to_has_ans

Expand Down

0 comments on commit ca1d667

Please sign in to comment.