Update PxCorpus.py
Browse files- PxCorpus.py +1 -1
PxCorpus.py
CHANGED
|
@@ -49,7 +49,7 @@ class StringIndex:
|
|
| 49 |
continue
|
| 50 |
|
| 51 |
# Index terms by their first letter and length
|
| 52 |
-
key = (term[0], len(term))
|
| 53 |
|
| 54 |
if key not in self.vocab_struct:
|
| 55 |
self.vocab_struct[key] = []
|
|
|
|
| 49 |
continue
|
| 50 |
|
| 51 |
# Index terms by their first letter and length
|
| 52 |
+
key = (str(term)[0], len(term))
|
| 53 |
|
| 54 |
if key not in self.vocab_struct:
|
| 55 |
self.vocab_struct[key] = []
|