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
00aa9dbc
Unverified
Commit
00aa9dbc
authored
Dec 07, 2020
by
Sylvain Gugger
Committed by
GitHub
Dec 07, 2020
Browse files
Copyright (#8970)
* Add copyright everywhere missing * Style
parent
c108d0b5
Changes
318
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
215 additions
and
5 deletions
+215
-5
src/transformers/models/blenderbot/__init__.py
src/transformers/models/blenderbot/__init__.py
+14
-0
src/transformers/models/camembert/__init__.py
src/transformers/models/camembert/__init__.py
+14
-0
src/transformers/models/ctrl/__init__.py
src/transformers/models/ctrl/__init__.py
+14
-0
src/transformers/models/deberta/__init__.py
src/transformers/models/deberta/__init__.py
+14
-0
src/transformers/models/dialogpt/convert_dialogpt_original_pytorch_checkpoint_to_pytorch.py
...onvert_dialogpt_original_pytorch_checkpoint_to_pytorch.py
+14
-0
src/transformers/models/distilbert/__init__.py
src/transformers/models/distilbert/__init__.py
+14
-0
src/transformers/models/dpr/__init__.py
src/transformers/models/dpr/__init__.py
+14
-0
src/transformers/models/dpr/configuration_dpr.py
src/transformers/models/dpr/configuration_dpr.py
+1
-1
src/transformers/models/dpr/convert_dpr_original_checkpoint_to_pytorch.py
.../models/dpr/convert_dpr_original_checkpoint_to_pytorch.py
+14
-0
src/transformers/models/dpr/modeling_dpr.py
src/transformers/models/dpr/modeling_dpr.py
+1
-1
src/transformers/models/dpr/modeling_tf_dpr.py
src/transformers/models/dpr/modeling_tf_dpr.py
+1
-1
src/transformers/models/dpr/tokenization_dpr.py
src/transformers/models/dpr/tokenization_dpr.py
+1
-1
src/transformers/models/dpr/tokenization_dpr_fast.py
src/transformers/models/dpr/tokenization_dpr_fast.py
+1
-1
src/transformers/models/electra/__init__.py
src/transformers/models/electra/__init__.py
+14
-0
src/transformers/models/encoder_decoder/__init__.py
src/transformers/models/encoder_decoder/__init__.py
+14
-0
src/transformers/models/flaubert/__init__.py
src/transformers/models/flaubert/__init__.py
+14
-0
src/transformers/models/fsmt/__init__.py
src/transformers/models/fsmt/__init__.py
+14
-0
src/transformers/models/funnel/__init__.py
src/transformers/models/funnel/__init__.py
+14
-0
src/transformers/models/gpt2/__init__.py
src/transformers/models/gpt2/__init__.py
+14
-0
src/transformers/models/herbert/__init__.py
src/transformers/models/herbert/__init__.py
+14
-0
No files found.
src/transformers/models/blenderbot/__init__.py
View file @
00aa9dbc
...
@@ -2,6 +2,20 @@
...
@@ -2,6 +2,20 @@
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# 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
...file_utils
import
is_tf_available
,
is_torch_available
from
...file_utils
import
is_tf_available
,
is_torch_available
from
.configuration_blenderbot
import
BLENDERBOT_PRETRAINED_CONFIG_ARCHIVE_MAP
,
BlenderbotConfig
from
.configuration_blenderbot
import
BLENDERBOT_PRETRAINED_CONFIG_ARCHIVE_MAP
,
BlenderbotConfig
from
.tokenization_blenderbot
import
BlenderbotSmallTokenizer
,
BlenderbotTokenizer
from
.tokenization_blenderbot
import
BlenderbotSmallTokenizer
,
BlenderbotTokenizer
...
...
src/transformers/models/camembert/__init__.py
View file @
00aa9dbc
...
@@ -2,6 +2,20 @@
...
@@ -2,6 +2,20 @@
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# 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
...file_utils
import
is_sentencepiece_available
,
is_tf_available
,
is_tokenizers_available
,
is_torch_available
from
...file_utils
import
is_sentencepiece_available
,
is_tf_available
,
is_tokenizers_available
,
is_torch_available
from
.configuration_camembert
import
CAMEMBERT_PRETRAINED_CONFIG_ARCHIVE_MAP
,
CamembertConfig
from
.configuration_camembert
import
CAMEMBERT_PRETRAINED_CONFIG_ARCHIVE_MAP
,
CamembertConfig
...
...
src/transformers/models/ctrl/__init__.py
View file @
00aa9dbc
...
@@ -2,6 +2,20 @@
...
@@ -2,6 +2,20 @@
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# 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
...file_utils
import
is_tf_available
,
is_torch_available
from
...file_utils
import
is_tf_available
,
is_torch_available
from
.configuration_ctrl
import
CTRL_PRETRAINED_CONFIG_ARCHIVE_MAP
,
CTRLConfig
from
.configuration_ctrl
import
CTRL_PRETRAINED_CONFIG_ARCHIVE_MAP
,
CTRLConfig
from
.tokenization_ctrl
import
CTRLTokenizer
from
.tokenization_ctrl
import
CTRLTokenizer
...
...
src/transformers/models/deberta/__init__.py
View file @
00aa9dbc
...
@@ -2,6 +2,20 @@
...
@@ -2,6 +2,20 @@
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# 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
...file_utils
import
is_torch_available
from
...file_utils
import
is_torch_available
from
.configuration_deberta
import
DEBERTA_PRETRAINED_CONFIG_ARCHIVE_MAP
,
DebertaConfig
from
.configuration_deberta
import
DEBERTA_PRETRAINED_CONFIG_ARCHIVE_MAP
,
DebertaConfig
from
.tokenization_deberta
import
DebertaTokenizer
from
.tokenization_deberta
import
DebertaTokenizer
...
...
src/transformers/models/dialogpt/convert_dialogpt_original_pytorch_checkpoint_to_pytorch.py
View file @
00aa9dbc
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# 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.
import
argparse
import
argparse
import
os
import
os
...
...
src/transformers/models/distilbert/__init__.py
View file @
00aa9dbc
...
@@ -2,6 +2,20 @@
...
@@ -2,6 +2,20 @@
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# 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
...file_utils
import
is_tf_available
,
is_tokenizers_available
,
is_torch_available
from
...file_utils
import
is_tf_available
,
is_tokenizers_available
,
is_torch_available
from
.configuration_distilbert
import
DISTILBERT_PRETRAINED_CONFIG_ARCHIVE_MAP
,
DistilBertConfig
from
.configuration_distilbert
import
DISTILBERT_PRETRAINED_CONFIG_ARCHIVE_MAP
,
DistilBertConfig
from
.tokenization_distilbert
import
DistilBertTokenizer
from
.tokenization_distilbert
import
DistilBertTokenizer
...
...
src/transformers/models/dpr/__init__.py
View file @
00aa9dbc
...
@@ -2,6 +2,20 @@
...
@@ -2,6 +2,20 @@
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# 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
...file_utils
import
is_tf_available
,
is_tokenizers_available
,
is_torch_available
from
...file_utils
import
is_tf_available
,
is_tokenizers_available
,
is_torch_available
from
.configuration_dpr
import
DPR_PRETRAINED_CONFIG_ARCHIVE_MAP
,
DPRConfig
from
.configuration_dpr
import
DPR_PRETRAINED_CONFIG_ARCHIVE_MAP
,
DPRConfig
from
.tokenization_dpr
import
(
from
.tokenization_dpr
import
(
...
...
src/transformers/models/dpr/configuration_dpr.py
View file @
00aa9dbc
# coding=utf-8
# coding=utf-8
# Copyright 2010, DPR authors
# Copyright 2010, DPR authors
, The Hugging Face Team.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
src/transformers/models/dpr/convert_dpr_original_checkpoint_to_pytorch.py
View file @
00aa9dbc
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# 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.
import
argparse
import
argparse
import
collections
import
collections
from
pathlib
import
Path
from
pathlib
import
Path
...
...
src/transformers/models/dpr/modeling_dpr.py
View file @
00aa9dbc
# coding=utf-8
# coding=utf-8
# Copyright 2018 DPR Authors
# Copyright 2018 DPR Authors
, The Hugging Face Team.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
src/transformers/models/dpr/modeling_tf_dpr.py
View file @
00aa9dbc
# coding=utf-8
# coding=utf-8
# Copyright 2018 DPR Authors
# Copyright 2018 DPR Authors
, The Hugging Face Team.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
src/transformers/models/dpr/tokenization_dpr.py
View file @
00aa9dbc
# coding=utf-8
# coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
# Copyright 2018 The HuggingFace Inc. team
, The Hugging Face Team
.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
src/transformers/models/dpr/tokenization_dpr_fast.py
View file @
00aa9dbc
# coding=utf-8
# coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
# Copyright 2018 The HuggingFace Inc. team
, The Hugging Face Team
.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
...
src/transformers/models/electra/__init__.py
View file @
00aa9dbc
...
@@ -2,6 +2,20 @@
...
@@ -2,6 +2,20 @@
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# 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
...file_utils
import
is_tf_available
,
is_tokenizers_available
,
is_torch_available
from
...file_utils
import
is_tf_available
,
is_tokenizers_available
,
is_torch_available
from
.configuration_electra
import
ELECTRA_PRETRAINED_CONFIG_ARCHIVE_MAP
,
ElectraConfig
from
.configuration_electra
import
ELECTRA_PRETRAINED_CONFIG_ARCHIVE_MAP
,
ElectraConfig
from
.tokenization_electra
import
ElectraTokenizer
from
.tokenization_electra
import
ElectraTokenizer
...
...
src/transformers/models/encoder_decoder/__init__.py
View file @
00aa9dbc
...
@@ -2,6 +2,20 @@
...
@@ -2,6 +2,20 @@
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# 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
...file_utils
import
is_torch_available
from
...file_utils
import
is_torch_available
from
.configuration_encoder_decoder
import
EncoderDecoderConfig
from
.configuration_encoder_decoder
import
EncoderDecoderConfig
...
...
src/transformers/models/flaubert/__init__.py
View file @
00aa9dbc
...
@@ -2,6 +2,20 @@
...
@@ -2,6 +2,20 @@
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# 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
...file_utils
import
is_tf_available
,
is_torch_available
from
...file_utils
import
is_tf_available
,
is_torch_available
from
.configuration_flaubert
import
FLAUBERT_PRETRAINED_CONFIG_ARCHIVE_MAP
,
FlaubertConfig
from
.configuration_flaubert
import
FLAUBERT_PRETRAINED_CONFIG_ARCHIVE_MAP
,
FlaubertConfig
from
.tokenization_flaubert
import
FlaubertTokenizer
from
.tokenization_flaubert
import
FlaubertTokenizer
...
...
src/transformers/models/fsmt/__init__.py
View file @
00aa9dbc
...
@@ -2,6 +2,20 @@
...
@@ -2,6 +2,20 @@
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# 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
...file_utils
import
is_torch_available
from
...file_utils
import
is_torch_available
from
.configuration_fsmt
import
FSMT_PRETRAINED_CONFIG_ARCHIVE_MAP
,
FSMTConfig
from
.configuration_fsmt
import
FSMT_PRETRAINED_CONFIG_ARCHIVE_MAP
,
FSMTConfig
from
.tokenization_fsmt
import
FSMTTokenizer
from
.tokenization_fsmt
import
FSMTTokenizer
...
...
src/transformers/models/funnel/__init__.py
View file @
00aa9dbc
...
@@ -2,6 +2,20 @@
...
@@ -2,6 +2,20 @@
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# 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
...file_utils
import
is_tf_available
,
is_tokenizers_available
,
is_torch_available
from
...file_utils
import
is_tf_available
,
is_tokenizers_available
,
is_torch_available
from
.configuration_funnel
import
FUNNEL_PRETRAINED_CONFIG_ARCHIVE_MAP
,
FunnelConfig
from
.configuration_funnel
import
FUNNEL_PRETRAINED_CONFIG_ARCHIVE_MAP
,
FunnelConfig
from
.tokenization_funnel
import
FunnelTokenizer
from
.tokenization_funnel
import
FunnelTokenizer
...
...
src/transformers/models/gpt2/__init__.py
View file @
00aa9dbc
...
@@ -2,6 +2,20 @@
...
@@ -2,6 +2,20 @@
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# 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
...file_utils
import
is_tf_available
,
is_tokenizers_available
,
is_torch_available
from
...file_utils
import
is_tf_available
,
is_tokenizers_available
,
is_torch_available
from
.configuration_gpt2
import
GPT2_PRETRAINED_CONFIG_ARCHIVE_MAP
,
GPT2Config
from
.configuration_gpt2
import
GPT2_PRETRAINED_CONFIG_ARCHIVE_MAP
,
GPT2Config
from
.tokenization_gpt2
import
GPT2Tokenizer
from
.tokenization_gpt2
import
GPT2Tokenizer
...
...
src/transformers/models/herbert/__init__.py
View file @
00aa9dbc
...
@@ -2,6 +2,20 @@
...
@@ -2,6 +2,20 @@
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# 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
...file_utils
import
is_tokenizers_available
from
...file_utils
import
is_tokenizers_available
from
.tokenization_herbert
import
HerbertTokenizer
from
.tokenization_herbert
import
HerbertTokenizer
...
...
Prev
1
…
4
5
6
7
8
9
10
11
12
…
16
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