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
5091db31
Commit
5091db31
authored
Mar 21, 2015
by
Ilia Kurenkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated _estimator func
parent
baf35701
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
nltk/model/ngram.py
+2
-2
No files found.
nltk/model/ngram.py
View file @
5091db31
...
@@ -22,11 +22,11 @@ from nltk import compat
...
@@ -22,11 +22,11 @@ from nltk import compat
def
_estimator
(
fdist
,
*
estimator_args
,
**
estimator_kwargs
):
def
_estimator
(
fdist
,
*
estimator_args
,
**
estimator_kwargs
):
"""
"""
Default estimator function using a
SimpleGoodTuring
ProbDist.
Default estimator function using a
Lidstone
ProbDist.
"""
"""
# can't be an instance method of NgramModel as they
# can't be an instance method of NgramModel as they
# can't be pickled either.
# can't be pickled either.
return
LidstoneProbDist
(
fdist
,
*
estimator_args
,
**
estimator_kwargs
)
return
LidstoneProbDist
(
fdist
,
0.001
,
*
estimator_args
,
**
estimator_kwargs
)
@compat.python_2_unicode_compatible
@compat.python_2_unicode_compatible
...
...
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