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
04b602f9
"docs/source/vscode:/vscode.git/clone" did not exist on "4aa17d00690b7f82c95bb2949ea57e22c35b4336"
Commit
04b602f9
authored
Dec 18, 2019
by
Morgan Funtowicz
Browse files
Put module import on top of the module.
parent
0c88c856
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
transformers/pipelines.py
transformers/pipelines.py
+6
-5
No files found.
transformers/pipelines.py
View file @
04b602f9
...
@@ -20,6 +20,7 @@ import os
...
@@ -20,6 +20,7 @@ import os
from
abc
import
ABC
,
abstractmethod
from
abc
import
ABC
,
abstractmethod
from
contextlib
import
contextmanager
from
contextlib
import
contextmanager
from
itertools
import
groupby
from
itertools
import
groupby
from
os.path
import
abspath
,
exists
from
typing
import
Union
,
Optional
,
Tuple
,
List
,
Dict
from
typing
import
Union
,
Optional
,
Tuple
,
List
,
Dict
import
numpy
as
np
import
numpy
as
np
...
@@ -100,7 +101,7 @@ class PipelineDataFormat:
...
@@ -100,7 +101,7 @@ class PipelineDataFormat:
if
self
.
is_multi_columns
:
if
self
.
is_multi_columns
:
self
.
column
=
[
tuple
(
c
.
split
(
'='
))
if
'='
in
c
else
(
c
,
c
)
for
c
in
self
.
column
]
self
.
column
=
[
tuple
(
c
.
split
(
'='
))
if
'='
in
c
else
(
c
,
c
)
for
c
in
self
.
column
]
from
os.path
import
abspath
,
exists
if
output
is
not
None
:
if
exists
(
abspath
(
self
.
output
)):
if
exists
(
abspath
(
self
.
output
)):
raise
OSError
(
'{} already exists on disk'
.
format
(
self
.
output
))
raise
OSError
(
'{} already exists on disk'
.
format
(
self
.
output
))
...
...
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