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
6b2200fc
Commit
6b2200fc
authored
Dec 22, 2019
by
Aymeric Augustin
Browse files
Remove u-prefixes.
parent
c824d15a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
examples/summarization/utils_summarization.py
examples/summarization/utils_summarization.py
+1
-1
src/transformers/commands/user.py
src/transformers/commands/user.py
+2
-2
No files found.
examples/summarization/utils_summarization.py
View file @
6b2200fc
...
...
@@ -94,7 +94,7 @@ def process_story(raw_story):
def
_add_missing_period
(
line
):
END_TOKENS
=
[
"."
,
"!"
,
"?"
,
"..."
,
"'"
,
"`"
,
'"'
,
u
"
\u2019
"
,
u
"
\u2019
"
,
")"
]
END_TOKENS
=
[
"."
,
"!"
,
"?"
,
"..."
,
"'"
,
"`"
,
'"'
,
"
\u2019
"
,
"
\u2019
"
,
")"
]
if
line
.
startswith
(
"@highlight"
):
return
line
if
line
[
-
1
]
in
END_TOKENS
:
...
...
src/transformers/commands/user.py
View file @
6b2200fc
...
...
@@ -34,8 +34,8 @@ class ANSI:
Helper for en.wikipedia.org/wiki/ANSI_escape_code
"""
_bold
=
u
"
\u001b
[1m"
_reset
=
u
"
\u001b
[0m"
_bold
=
"
\u001b
[1m"
_reset
=
"
\u001b
[0m"
@
classmethod
def
bold
(
cls
,
s
):
...
...
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