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
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
12 additions
and
20 deletions
+12
-20
src/transformers/tokenization_ctrl.py
src/transformers/tokenization_ctrl.py
+1
-1
src/transformers/tokenization_distilbert.py
src/transformers/tokenization_distilbert.py
+0
-1
src/transformers/tokenization_gpt2.py
src/transformers/tokenization_gpt2.py
+1
-1
src/transformers/tokenization_openai.py
src/transformers/tokenization_openai.py
+1
-1
src/transformers/tokenization_roberta.py
src/transformers/tokenization_roberta.py
+1
-1
src/transformers/tokenization_t5.py
src/transformers/tokenization_t5.py
+0
-1
src/transformers/tokenization_transfo_xl.py
src/transformers/tokenization_transfo_xl.py
+1
-1
src/transformers/tokenization_utils.py
src/transformers/tokenization_utils.py
+1
-1
src/transformers/tokenization_xlm.py
src/transformers/tokenization_xlm.py
+1
-1
src/transformers/tokenization_xlm_roberta.py
src/transformers/tokenization_xlm_roberta.py
+1
-1
src/transformers/tokenization_xlnet.py
src/transformers/tokenization_xlnet.py
+1
-1
templates/adding_a_new_example_script/run_xxx.py
templates/adding_a_new_example_script/run_xxx.py
+0
-1
templates/adding_a_new_example_script/utils_xxx.py
templates/adding_a_new_example_script/utils_xxx.py
+0
-1
templates/adding_a_new_model/configuration_xxx.py
templates/adding_a_new_model/configuration_xxx.py
+0
-1
templates/adding_a_new_model/convert_xxx_original_tf_checkpoint_to_pytorch.py
...ew_model/convert_xxx_original_tf_checkpoint_to_pytorch.py
+0
-1
templates/adding_a_new_model/modeling_tf_xxx.py
templates/adding_a_new_model/modeling_tf_xxx.py
+0
-1
templates/adding_a_new_model/modeling_xxx.py
templates/adding_a_new_model/modeling_xxx.py
+0
-1
templates/adding_a_new_model/tests/test_modeling_tf_xxx.py
templates/adding_a_new_model/tests/test_modeling_tf_xxx.py
+1
-1
templates/adding_a_new_model/tests/test_modeling_xxx.py
templates/adding_a_new_model/tests/test_modeling_xxx.py
+1
-1
templates/adding_a_new_model/tests/test_tokenization_xxx.py
templates/adding_a_new_model/tests/test_tokenization_xxx.py
+1
-1
No files found.
src/transformers/tokenization_ctrl.py
View file @
c824d15a
...
...
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
"""Tokenization classes for Salesforce CTRL."""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
json
import
logging
...
...
src/transformers/tokenization_distilbert.py
View file @
c824d15a
...
...
@@ -14,7 +14,6 @@
# limitations under the License.
"""Tokenization classes for DistilBERT."""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
...
...
src/transformers/tokenization_gpt2.py
View file @
c824d15a
...
...
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
"""Tokenization classes for OpenAI GPT."""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
json
import
logging
...
...
src/transformers/tokenization_openai.py
View file @
c824d15a
...
...
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
"""Tokenization classes for OpenAI GPT."""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
json
import
logging
...
...
src/transformers/tokenization_roberta.py
View file @
c824d15a
...
...
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
"""Tokenization classes for RoBERTa."""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
...
...
src/transformers/tokenization_t5.py
View file @
c824d15a
...
...
@@ -14,7 +14,6 @@
# limitations under the License.
""" Tokenization class for model T5."""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
os
...
...
src/transformers/tokenization_transfo_xl.py
View file @
c824d15a
...
...
@@ -16,7 +16,7 @@
""" Tokenization classes for Transformer XL model.
Adapted from https://github.com/kimiyoung/transformer-xl.
"""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
glob
import
logging
...
...
src/transformers/tokenization_utils.py
View file @
c824d15a
...
...
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
"""Tokenization classes for OpenAI GPT."""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
copy
import
itertools
...
...
src/transformers/tokenization_xlm.py
View file @
c824d15a
...
...
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
"""Tokenization classes for XLM."""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
json
import
logging
...
...
src/transformers/tokenization_xlm_roberta.py
View file @
c824d15a
...
...
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License
""" Tokenization classes for XLM-RoBERTa model."""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
os
...
...
src/transformers/tokenization_xlnet.py
View file @
c824d15a
...
...
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
""" Tokenization classes for XLNet model."""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
os
...
...
templates/adding_a_new_example_script/run_xxx.py
View file @
c824d15a
...
...
@@ -14,7 +14,6 @@
# limitations under the License.
""" Finetuning the library models for task XXX."""
from
__future__
import
absolute_import
,
division
,
print_function
import
argparse
import
glob
...
...
templates/adding_a_new_example_script/utils_xxx.py
View file @
c824d15a
...
...
@@ -14,7 +14,6 @@
# limitations under the License.
""" Load XXX dataset. """
from
__future__
import
absolute_import
,
division
,
print_function
import
collections
import
json
...
...
templates/adding_a_new_model/configuration_xxx.py
View file @
c824d15a
...
...
@@ -14,7 +14,6 @@
# limitations under the License.
""" XXX model configuration """
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
...
...
templates/adding_a_new_model/convert_xxx_original_tf_checkpoint_to_pytorch.py
View file @
c824d15a
...
...
@@ -14,7 +14,6 @@
# limitations under the License.
"""Convert XXX checkpoint."""
from
__future__
import
absolute_import
,
division
,
print_function
import
argparse
import
logging
...
...
templates/adding_a_new_model/modeling_tf_xxx.py
View file @
c824d15a
...
...
@@ -19,7 +19,6 @@
# In this template, replace all the XXX (various casings) with your model name
####################################################
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
...
...
templates/adding_a_new_model/modeling_xxx.py
View file @
c824d15a
...
...
@@ -18,7 +18,6 @@
# In this template, replace all the XXX (various casings) with your model name
####################################################
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
logging
import
os
...
...
templates/adding_a_new_model/tests/test_modeling_tf_xxx.py
View file @
c824d15a
...
...
@@ -12,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
absolute_import
,
division
,
print_function
import
unittest
...
...
templates/adding_a_new_model/tests/test_modeling_xxx.py
View file @
c824d15a
...
...
@@ -12,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
absolute_import
,
division
,
print_function
import
unittest
...
...
templates/adding_a_new_model/tests/test_tokenization_xxx.py
View file @
c824d15a
...
...
@@ -12,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
import
os
import
unittest
...
...
Prev
1
2
3
4
5
6
7
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