Commit c824d15a authored by Aymeric Augustin's avatar Aymeric Augustin
Browse files

Remove __future__ imports.

parent b6ea0f43
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
"""BERT finetuning runner. """BERT finetuning runner.
Finetuning the library models for multiple choice on SWAG (Bert). Finetuning the library models for multiple choice on SWAG (Bert).
""" """
from __future__ import absolute_import, division, print_function
import argparse import argparse
import csv import csv
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
This script with default values evaluates a pretrained Transformer-XL on WikiText 103 This script with default values evaluates a pretrained Transformer-XL on WikiText 103
""" """
from __future__ import absolute_import, division, print_function, unicode_literals
import argparse import argparse
import logging import logging
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
# limitations under the License. # limitations under the License.
""" This is the exact same script as `examples/run_squad.py` (as of 2019, October 4th) with an additional and optional step of distillation.""" """ This is the exact same script as `examples/run_squad.py` (as of 2019, October 4th) with an additional and optional step of distillation."""
from __future__ import absolute_import, division, print_function
import argparse import argparse
import glob import glob
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
# limitations under the License. # limitations under the License.
""" Finetuning the library models for multimodal multiclass prediction on MM-IMDB dataset.""" """ Finetuning the library models for multimodal multiclass prediction on MM-IMDB dataset."""
from __future__ import absolute_import, division, print_function
import argparse import argparse
import glob import glob
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
# limitations under the License. # limitations under the License.
""" Conditional text generation with the auto-regressive models of the library (GPT/GPT-2/CTRL/Transformer-XL/XLNet) """ Conditional text generation with the auto-regressive models of the library (GPT/GPT-2/CTRL/Transformer-XL/XLNet)
""" """
from __future__ import absolute_import, division, print_function, unicode_literals
import argparse import argparse
import logging import logging
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
# limitations under the License. # limitations under the License.
""" Finetuning the library models for sequence classification on GLUE (Bert, XLM, XLNet, RoBERTa).""" """ Finetuning the library models for sequence classification on GLUE (Bert, XLM, XLNet, RoBERTa)."""
from __future__ import absolute_import, division, print_function
import argparse import argparse
import glob import glob
......
...@@ -19,7 +19,6 @@ GPT and GPT-2 are fine-tuned using a causal language modeling (CLM) loss while B ...@@ -19,7 +19,6 @@ GPT and GPT-2 are fine-tuned using a causal language modeling (CLM) loss while B
using a masked language modeling (MLM) loss. using a masked language modeling (MLM) loss.
""" """
from __future__ import absolute_import, division, print_function
import argparse import argparse
import glob import glob
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
# limitations under the License. # limitations under the License.
""" Finetuning the library models for multiple choice (Bert, Roberta, XLNet).""" """ Finetuning the library models for multiple choice (Bert, Roberta, XLNet)."""
from __future__ import absolute_import, division, print_function
import argparse import argparse
import glob import glob
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
# limitations under the License. # limitations under the License.
""" Fine-tuning the library models for named entity recognition on CoNLL-2003 (Bert or Roberta). """ """ Fine-tuning the library models for named entity recognition on CoNLL-2003 (Bert or Roberta). """
from __future__ import absolute_import, division, print_function
import argparse import argparse
import glob import glob
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
# limitations under the License. # limitations under the License.
""" Finetuning the library models for question-answering on SQuAD (DistilBERT, Bert, XLM, XLNet).""" """ Finetuning the library models for question-answering on SQuAD (DistilBERT, Bert, XLM, XLNet)."""
from __future__ import absolute_import, division, print_function
import argparse import argparse
import glob import glob
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
""" Finetuning multi-lingual models on XNLI (Bert, DistilBERT, XLM). """ Finetuning multi-lingual models on XNLI (Bert, DistilBERT, XLM).
Adapted from `examples/run_glue.py`""" Adapted from `examples/run_glue.py`"""
from __future__ import absolute_import, division, print_function
import argparse import argparse
import glob import glob
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import absolute_import, division, print_function
import argparse import argparse
import logging import logging
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
# limitations under the License. # limitations under the License.
""" Multiple choice fine-tuning: utilities to work with multiple choice tasks of reading comprehension """ """ Multiple choice fine-tuning: utilities to work with multiple choice tasks of reading comprehension """
from __future__ import absolute_import, division, print_function
import csv import csv
import glob import glob
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
# limitations under the License. # limitations under the License.
""" Named entity recognition fine-tuning: utilities to work with CoNLL-2003 task. """ """ Named entity recognition fine-tuning: utilities to work with CoNLL-2003 task. """
from __future__ import absolute_import, division, print_function
import logging import logging
import os import os
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
# limitations under the License. # limitations under the License.
""" Auto Model class. """ """ Auto Model class. """
from __future__ import absolute_import, division, print_function, unicode_literals
import logging import logging
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
# limitations under the License. # limitations under the License.
""" BERT model configuration """ """ BERT model configuration """
from __future__ import absolute_import, division, print_function, unicode_literals
import logging import logging
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
# limitations under the License. # limitations under the License.
""" CamemBERT configuration """ """ CamemBERT configuration """
from __future__ import absolute_import, division, print_function, unicode_literals
import logging import logging
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
# limitations under the License. # limitations under the License.
""" Salesforce CTRL configuration """ """ Salesforce CTRL configuration """
from __future__ import absolute_import, division, print_function, unicode_literals
import logging import logging
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
""" DistilBERT model configuration """ """ DistilBERT model configuration """
from __future__ import absolute_import, division, print_function, unicode_literals
import logging import logging
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
# limitations under the License. # limitations under the License.
""" OpenAI GPT-2 configuration """ """ OpenAI GPT-2 configuration """
from __future__ import absolute_import, division, print_function, unicode_literals
import logging import logging
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment