Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
92c26bc8
Commit
92c26bc8
authored
May 17, 2002
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve OOV explanation, based on Guido's feedback.
parent
9b736188
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
lib/python/Products/ZCTextIndex/BaseIndex.py
lib/python/Products/ZCTextIndex/BaseIndex.py
+7
-5
No files found.
lib/python/Products/ZCTextIndex/BaseIndex.py
View file @
92c26bc8
...
@@ -61,11 +61,13 @@ class BaseIndex(Persistent):
...
@@ -61,11 +61,13 @@ class BaseIndex(Persistent):
# of a docid-to-weight map.
# of a docid-to-weight map.
# There are two kinds of OOV words: wid 0 is explicitly OOV,
# There are two kinds of OOV words: wid 0 is explicitly OOV,
# and it's possible that the lexicon will return a non-zero wid
# and it's possible that the lexicon will return a non-zero wid
# for a word *we've* never seen (e.g., lexicons can be shared
# for a word we don't currently know about. For example, if we
# across indices, and a query can contain a word some other
# unindex the last doc containing a particular word, that wid
# index knows about but we don't). A word is in-vocabulary for
# remains in the lexicon, but is no longer in our _wordinfo map;
# this index if and only if _wordinfo.has_key(wid). Note that
# lexicons can also be shared across indices, and some other index
# wid 0 must not be a key in _wordinfo.
# may introduce a lexicon word we've never seen.
# A word is in-vocabulary for this index if and only if
# _wordinfo.has_key(wid). Note that wid 0 must not be a key.
self
.
_wordinfo
=
IOBTree
()
self
.
_wordinfo
=
IOBTree
()
# docid -> weight
# docid -> weight
...
...
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