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
ModelZoo
ResNet50_tensorflow
Commits
f1e8ff7c
Commit
f1e8ff7c
authored
Dec 08, 2016
by
Pranay Mathur
Committed by
GitHub
Dec 08, 2016
Browse files
Update data.py
parent
27a178a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
textsum/data.py
textsum/data.py
+0
-1
No files found.
textsum/data.py
View file @
f1e8ff7c
...
@@ -60,7 +60,6 @@ class Vocab(object):
...
@@ -60,7 +60,6 @@ class Vocab(object):
if
word
not
in
self
.
_word_to_id
:
if
word
not
in
self
.
_word_to_id
:
return
None
return
None
return
self
.
_word_to_id
[
word
]
return
self
.
_word_to_id
[
word
]
def
WordToId
(
self
,
word
):
def
WordToId
(
self
,
word
):
if
word
not
in
self
.
_word_to_id
:
if
word
not
in
self
.
_word_to_id
:
...
...
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