Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
old_macaon_data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Franck Dary
old_macaon_data
Commits
c728e343
Commit
c728e343
authored
5 years ago
by
Franck Dary
Browse files
Options
Downloads
Patches
Plain Diff
Fixed utf8 output
parent
295c38f8
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/conlluAddMissingColumns.py
+3
-3
3 additions, 3 deletions
tools/conlluAddMissingColumns.py
with
3 additions
and
3 deletions
tools/conlluAddMissingColumns.py
+
3
−
3
View file @
c728e343
#! /usr/bin/python3
import
sys
import
codecs
sys
.
stdout
=
codecs
.
getwriter
(
'
utf8
'
)(
sys
.
stdout
)
sys
.
stderr
=
codecs
.
getwriter
(
'
utf8
'
)(
sys
.
stderr
)
def
printUsageAndExit
()
:
print
(
"
USAGE : %s file.conllu mcd
"
%
sys
.
argv
[
0
],
file
=
sys
.
stderr
)
...
...
@@ -24,6 +21,9 @@ def readMCD(mcdFilename) :
return
mcd
if
__name__
==
"
__main__
"
:
sys
.
stdout
=
open
(
1
,
'
w
'
,
encoding
=
'
utf-8
'
,
closefd
=
False
)
if
len
(
sys
.
argv
)
!=
3
:
printUsageAndExit
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment