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
ba9e4eb3
Commit
ba9e4eb3
authored
Feb 06, 2019
by
thomwolf
Browse files
fix unicode in tokenization tests
parent
34bdb7f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
tests/tokenization_test.py
tests/tokenization_test.py
+6
-5
No files found.
tests/tokenization_test.py
View file @
ba9e4eb3
...
@@ -12,16 +12,17 @@
...
@@ -12,16 +12,17 @@
# 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
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
from
__future__
import
division
from
__future__
import
print_function
import
os
import
os
import
unittest
import
unittest
from
io
import
open
from
io
import
open
from
pytorch_pretrained_bert.tokenization
import
(
BertTokenizer
,
BasicTokenizer
,
WordpieceTokenizer
,
from
pytorch_pretrained_bert.tokenization
import
(
BasicTokenizer
,
_is_whitespace
,
_is_control
,
_is_punctuation
)
BertTokenizer
,
WordpieceTokenizer
,
_is_control
,
_is_punctuation
,
_is_whitespace
)
class
TokenizationTest
(
unittest
.
TestCase
):
class
TokenizationTest
(
unittest
.
TestCase
):
...
...
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