Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nltk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
nltk
Commits
2c24d60c
Commit
2c24d60c
authored
Oct 29, 2013
by
Ewan Klein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed variable scoping bug.
parent
230c4426
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
nltk/sem/relextract.py
+5
-5
No files found.
nltk/sem/relextract.py
View file @
2c24d60c
...
@@ -377,14 +377,14 @@ def ieer_headlines():
...
@@ -377,14 +377,14 @@ def ieer_headlines():
from
nltk.corpus
import
ieer
from
nltk.corpus
import
ieer
from
nltk.tree
import
Tree
from
nltk.tree
import
Tree
print
(
"IEER: First 20 Headlines"
)
print
(
"IEER: First 20 Headlines"
)
print
(
"="
*
45
)
print
(
"="
*
45
)
trees
=
[
doc
.
headline
for
file
in
ieer
.
fileids
()
for
doc
in
ieer
.
parsed_docs
(
file
)]
trees
=
[
(
doc
.
docno
,
doc
.
headline
)
for
file
in
ieer
.
fileids
()
for
doc
in
ieer
.
parsed_docs
(
file
)]
for
tree
in
trees
[:
20
]:
for
tree
in
trees
[:
20
]:
print
()
print
()
print
(
"
%
s:
\n
%
s"
%
(
doc
.
docno
,
tree
)
)
print
(
"
%
s:
\n
%
s"
%
tree
)
...
...
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