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
8f46cd10
Unverified
Commit
8f46cd10
authored
Feb 18, 2019
by
Thomas Wolf
Committed by
GitHub
Feb 18, 2019
Browse files
Merge pull request #288 from huggingface/gpt2
forgot to add regex to requirements.txt :(
parents
0856a231
e0855e89
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
pytorch_pretrained_bert/__init__.py
pytorch_pretrained_bert/__init__.py
+1
-1
requirements.txt
requirements.txt
+3
-1
setup.py
setup.py
+3
-2
No files found.
pytorch_pretrained_bert/__init__.py
View file @
8f46cd10
__version__
=
"0.6.
0
"
__version__
=
"0.6.
1
"
from
.tokenization
import
BertTokenizer
,
BasicTokenizer
,
WordpieceTokenizer
from
.tokenization_openai
import
OpenAIGPTTokenizer
from
.tokenization_transfo_xl
import
(
TransfoXLTokenizer
,
TransfoXLCorpus
)
...
...
requirements.txt
View file @
8f46cd10
...
...
@@ -6,3 +6,5 @@ tqdm
boto3
# Used for downloading models over HTTP
requests
# For OpenAI GPT
regex
\ No newline at end of file
setup.py
View file @
8f46cd10
...
...
@@ -38,7 +38,7 @@ from setuptools import find_packages, setup
setup
(
name
=
"pytorch_pretrained_bert"
,
version
=
"0.6.
0
"
,
version
=
"0.6.
1
"
,
author
=
"Thomas Wolf, 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"
,
...
...
@@ -53,7 +53,8 @@ setup(
'numpy'
,
'boto3'
,
'requests'
,
'tqdm'
],
'tqdm'
,
'regex'
],
entry_points
=
{
'console_scripts'
:
[
"pytorch_pretrained_bert=pytorch_pretrained_bert.__main__:main"
,
...
...
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