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
0b82e3d0
Commit
0b82e3d0
authored
Sep 24, 2019
by
LysandreJik
Browse files
Relative imports
parent
f09e5ece
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
pytorch_transformers/preprocessing/__init__.py
pytorch_transformers/preprocessing/__init__.py
+2
-2
pytorch_transformers/preprocessing/glue.py
pytorch_transformers/preprocessing/glue.py
+1
-1
No files found.
pytorch_transformers/preprocessing/__init__.py
View file @
0b82e3d0
...
...
@@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
glue
import
(
ColaProcessor
,
from
.
glue
import
(
ColaProcessor
,
MnliProcessor
,
MnliMismatchedProcessor
,
MrpcProcessor
,
...
...
@@ -27,7 +27,7 @@ from glue import (ColaProcessor,
convert_examples_to_glue_features
,
)
from
utils
import
DataProcessor
,
simple_accuracy
,
acc_and_f1
,
pearson_and_spearman
,
compute_metrics
from
.
utils
import
DataProcessor
,
simple_accuracy
,
acc_and_f1
,
pearson_and_spearman
,
compute_metrics
processors
=
{
"cola"
:
ColaProcessor
,
...
...
pytorch_transformers/preprocessing/glue.py
View file @
0b82e3d0
...
...
@@ -15,7 +15,7 @@
# limitations under the License.
""" GLUE processors and helpers """
from
utils
import
DataProcessor
from
.
utils
import
DataProcessor
import
logging
import
os
...
...
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