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
b18807d2
Commit
b18807d2
authored
May 18, 2014
by
Steven Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed problems in data.doctest
parent
8cf7bc7d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
nltk/test/data.doctest
+6
-6
No files found.
nltk/test/data.doctest
View file @
b18807d2
...
...
@@ -56,16 +56,16 @@ currently supported by the data module are described by the dictionary
`nltk.data.FORMATS`:
>>> for format, descr in sorted(nltk.data.FORMATS.items()):
... print('
%-7s %s' %
(format, descr)) # doctest: +NORMALIZE_WHITESPACE
cfg A context free grammar
, parsed by nltk.parse_cfg()
.
fcfg A feature CFG
, parsed by nltk.parse_fcfg()
.
... print('
{0:<7} {1:}'.format
(format, descr)) # doctest: +NORMALIZE_WHITESPACE
cfg A context free grammar.
fcfg A feature CFG.
fol A list of first order logic expressions, parsed by nltk.sem.parse_fol() using nltk.sem.logic.LogicParser.
json A serialized python object, stored using the json module.
logic A list of first order logic expressions, parsed by nltk.sem.parse_logic(). Requires an additional logic_parser parameter
pcfg A probabilistic CFG
, parsed by nltk.parse_pcfg()
.
logic A list of first order logic expressions, parsed by nltk.sem.parse_logic(). Requires an additional logic_parser parameter
pcfg A probabilistic CFG.
pickle A serialized python object, stored using the pickle module.
raw The raw (byte string) contents of a file.
text The raw (unicode string) contents of a file.
text The raw (unicode string) contents of a file.
val A semantic valuation, parsed by nltk.sem.parse_valuation().
yaml A serialized python object, stored using the yaml module.
...
...
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