Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
c824d15a
Commit
c824d15a
authored
Dec 22, 2019
by
Aymeric Augustin
Browse files
Remove __future__ imports.
parent
b6ea0f43
Changes
147
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
5 additions
and
20 deletions
+5
-20
examples/contrib/run_swag.py
examples/contrib/run_swag.py
+1
-1
examples/contrib/run_transfo_xl.py
examples/contrib/run_transfo_xl.py
+1
-1
examples/distillation/run_squad_w_distillation.py
examples/distillation/run_squad_w_distillation.py
+0
-1
examples/mm-imdb/run_mmimdb.py
examples/mm-imdb/run_mmimdb.py
+0
-1
examples/run_generation.py
examples/run_generation.py
+1
-1
examples/run_glue.py
examples/run_glue.py
+0
-1
examples/run_lm_finetuning.py
examples/run_lm_finetuning.py
+0
-1
examples/run_multiple_choice.py
examples/run_multiple_choice.py
+0
-1
examples/run_ner.py
examples/run_ner.py
+0
-1
examples/run_squad.py
examples/run_squad.py
+0
-1
examples/run_xnli.py
examples/run_xnli.py
+0
-1
examples/test_examples.py
examples/test_examples.py
+1
-1
examples/utils_multiple_choice.py
examples/utils_multiple_choice.py
+0
-1
examples/utils_ner.py
examples/utils_ner.py
+0
-1
src/transformers/configuration_auto.py
src/transformers/configuration_auto.py
+0
-1
src/transformers/configuration_bert.py
src/transformers/configuration_bert.py
+0
-1
src/transformers/configuration_camembert.py
src/transformers/configuration_camembert.py
+0
-1
src/transformers/configuration_ctrl.py
src/transformers/configuration_ctrl.py
+0
-1
src/transformers/configuration_distilbert.py
src/transformers/configuration_distilbert.py
+1
-1
src/transformers/configuration_gpt2.py
src/transformers/configuration_gpt2.py
+0
-1
No files found.
examples/contrib/run_swag.py
View file @
c824d15a
...
@@ -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
...
...
examples/contrib/run_transfo_xl.py
View file @
c824d15a
...
@@ -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
...
...
examples/distillation/run_squad_w_distillation.py
View file @
c824d15a
...
@@ -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
...
...
examples/mm-imdb/run_mmimdb.py
View file @
c824d15a
...
@@ -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
...
...
examples/run_generation.py
View file @
c824d15a
...
@@ -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
...
...
examples/run_glue.py
View file @
c824d15a
...
@@ -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
...
...
examples/run_lm_finetuning.py
View file @
c824d15a
...
@@ -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
...
...
examples/run_multiple_choice.py
View file @
c824d15a
...
@@ -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
...
...
examples/run_ner.py
View file @
c824d15a
...
@@ -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
...
...
examples/run_squad.py
View file @
c824d15a
...
@@ -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
...
...
examples/run_xnli.py
View file @
c824d15a
...
@@ -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
...
...
examples/test_examples.py
View file @
c824d15a
...
@@ -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
...
...
examples/utils_multiple_choice.py
View file @
c824d15a
...
@@ -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
...
...
examples/utils_ner.py
View file @
c824d15a
...
@@ -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
...
...
src/transformers/configuration_auto.py
View file @
c824d15a
...
@@ -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
...
...
src/transformers/configuration_bert.py
View file @
c824d15a
...
@@ -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
...
...
src/transformers/configuration_camembert.py
View file @
c824d15a
...
@@ -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
...
...
src/transformers/configuration_ctrl.py
View file @
c824d15a
...
@@ -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
...
...
src/transformers/configuration_distilbert.py
View file @
c824d15a
...
@@ -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
...
...
src/transformers/configuration_gpt2.py
View file @
c824d15a
...
@@ -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
...
...
Prev
1
2
3
4
5
…
8
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment