Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
Zope
Commits
808bcf50
Commit
808bcf50
authored
27 years ago
by
chris
Browse files
Options
Download
Email Patches
Plain Diff
Fixed small bug in Index.__init__()
parent
6552b950
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
lib/python/SearchIndex/InvertedIndex.py
lib/python/SearchIndex/InvertedIndex.py
+6
-3
No files found.
lib/python/SearchIndex/InvertedIndex.py
View file @
808bcf50
...
...
@@ -30,7 +30,7 @@ Example usage:
print i['blah']
$Id: InvertedIndex.py,v 1.4
1
1997/04/24 14:
19:16
chris Exp $'''
$Id: InvertedIndex.py,v 1.4
2
1997/04/24 14:
20:32
chris Exp $'''
# Copyright
#
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne
...
...
@@ -82,6 +82,9 @@ $Id: InvertedIndex.py,v 1.41 1997/04/24 14:19:16 chris Exp $'''
# (540) 371-6909
#
# $Log: InvertedIndex.py,v $
# Revision 1.42 1997/04/24 14:20:32 chris
# Fixed small bug in Index.__init__()
#
# Revision 1.41 1997/04/24 14:19:16 chris
# got rid of copy() in __init__()
#
...
...
@@ -220,7 +223,7 @@ $Id: InvertedIndex.py,v 1.41 1997/04/24 14:19:16 chris Exp $'''
#
#
#
__version__
=
'$Revision: 1.4
1
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.4
2
$'
[
11
:
-
2
]
import
regex
,
string
,
copy
...
...
@@ -527,7 +530,7 @@ class Index:
'Create an inverted index'
if
(
synstop
is
None
):
synstop
=
{}
for
key
,
value
in
default_stop_words
:
for
key
,
value
in
default_stop_words
.
items
()
:
synstop
[
key
]
=
value
self
.
synstop
=
synstop
...
...
This diff is collapsed.
Click to expand it.
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