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
e468192e
Commit
e468192e
authored
Jul 09, 2019
by
thomwolf
Browse files
Merge branch 'pytorch-transformers' into xlnet
parents
9dd2c860
4ce237c8
Changes
84
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
879 additions
and
7 deletions
+879
-7
pytorch_transformers/tokenization_utils.py
pytorch_transformers/tokenization_utils.py
+472
-0
pytorch_transformers/tokenization_xlm.py
pytorch_transformers/tokenization_xlm.py
+212
-0
pytorch_transformers/tokenization_xlnet.py
pytorch_transformers/tokenization_xlnet.py
+188
-0
setup.py
setup.py
+7
-7
No files found.
pytorch_transformers/tokenization_utils.py
0 → 100644
View file @
e468192e
This diff is collapsed.
Click to expand it.
pytorch_
pretrained_b
er
t
/tokenization_xlm.py
→
pytorch_
transform
er
s
/tokenization_xlm.py
View file @
e468192e
This diff is collapsed.
Click to expand it.
pytorch_
pretrained_b
er
t
/tokenization_xlnet.py
→
pytorch_
transform
er
s
/tokenization_xlnet.py
View file @
e468192e
This diff is collapsed.
Click to expand it.
setup.py
View file @
e468192e
...
...
@@ -37,16 +37,16 @@ from io import open
from
setuptools
import
find_packages
,
setup
setup
(
name
=
"pytorch_
pretrained_b
er
t
"
,
version
=
"0.
6.2
"
,
author
=
"Thomas Wolf, Victor Sanh, Tim Rault, Google AI Language Team Authors, Open AI team Authors"
,
name
=
"pytorch_
transform
er
s
"
,
version
=
"0.
7.0
"
,
author
=
"Thomas Wolf,
Lysandre Debut,
Victor Sanh, Tim Rault, Google AI Language Team Authors, Open AI team Authors"
,
author_email
=
"thomas@huggingface.co"
,
description
=
"
PyTorch version of Google AI BERT model with script to load Google pre-trained models
"
,
description
=
"
Repository of pre-trained NLP Transformer models: BERT, GPT & GPT-2, Transformer-XL, XLNet and XLM
"
,
long_description
=
open
(
"README.md"
,
"r"
,
encoding
=
'utf-8'
).
read
(),
long_description_content_type
=
"text/markdown"
,
keywords
=
'
BERT
NLP deep learning
google
'
,
keywords
=
'NLP deep learning
transformer pytorch BERT GPT GPT-2 google openai CMU
'
,
license
=
'Apache'
,
url
=
"https://github.com/huggingface/pytorch-
pretrained-BERT
"
,
url
=
"https://github.com/huggingface/pytorch-
transformers
"
,
packages
=
find_packages
(
exclude
=
[
"*.tests"
,
"*.tests.*"
,
"tests.*"
,
"tests"
]),
install_requires
=
[
'torch>=0.4.1'
,
...
...
@@ -58,7 +58,7 @@ setup(
'sentencepiece'
],
entry_points
=
{
'console_scripts'
:
[
"pytorch_
pretrained_b
er
t
=pytorch_
pretrained_b
er
t
.__main__:main"
,
"pytorch_
transform
er
s
=pytorch_
transform
er
s
.__main__:main"
,
]
},
# python_requires='>=3.5.0',
...
...
Prev
1
2
3
4
5
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