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
4cc33e5e
Commit
4cc33e5e
authored
Apr 18, 2014
by
Steven Bird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove stale Brill doctests
parent
d7429569
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
30 deletions
+0
-30
nltk/test/tag.doctest
+0
-30
No files found.
nltk/test/tag.doctest
View file @
4cc33e5e
...
@@ -20,33 +20,3 @@ Add tests for:
...
@@ -20,33 +20,3 @@ Add tests for:
backoff tagger if the backoff tagger gets that context correct at
backoff tagger if the backoff tagger gets that context correct at
*all* locations.
*all* locations.
Brill Tagger
------------
- test that fast & normal trainers get identical results when
deterministic=True is used.
- check on some simple examples to make sure they're doing the
right thing.
Make sure that get_neighborhoods is implemented correctly -- in
particular, given *index*, it should return the indices *i* such that
applicable_rules(token, i, ...) depends on the value of the
*index*\ th token. There used to be a bug where this was swapped --
i.e., it calculated the values of *i* such that
applicable_rules(token, index, ...) depended on *i*.
>>> from nltk.tag.brill import ProximateTokensTemplate, ProximateWordsRule
>>> t = ProximateTokensTemplate(ProximateWordsRule, (2,3))
>>> for i in range(10):
... print(sorted(t.get_neighborhood('abcdefghijkl', i)))
[0]
[1]
[0, 2]
[0, 1, 3]
[1, 2, 4]
[2, 3, 5]
[3, 4, 6]
[4, 5, 7]
[5, 6, 8]
[6, 7, 9]
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