updated data processor and metrics

This commit is contained in:
thomwolf
2019-09-24 17:10:50 +02:00
parent 0b82e3d0d9
commit b5ec526f85
9 changed files with 171 additions and 155 deletions

View File

@@ -73,3 +73,10 @@ from .optimization import (AdamW, ConstantLRSchedule, WarmupConstantSchedule, Wa
from .file_utils import (PYTORCH_TRANSFORMERS_CACHE, PYTORCH_PRETRAINED_BERT_CACHE,
cached_path, add_start_docstrings, add_end_docstrings,
WEIGHTS_NAME, TF_WEIGHTS_NAME, CONFIG_NAME)
from .data import (is_sklearn_available,
InputExample, InputFeatures, DataProcessor,
glue_output_modes, glue_convert_examples_to_features, glue_processors)
if is_sklearn_available():
from .data import glue_compute_metrics