Update PxCorpus.py
Browse files- PxCorpus.py +1 -0
PxCorpus.py
CHANGED
|
@@ -59,6 +59,7 @@ class StringIndex:
|
|
| 59 |
print("Finished building the index!")
|
| 60 |
|
| 61 |
def find(self, term):
|
|
|
|
| 62 |
return term in self.vocab_struct[(term[0], len(term))]
|
| 63 |
|
| 64 |
_VOCAB = StringIndex(vocab=open("./vocabulary_nachos_lowercased.txt","r").read().split("\n"))
|
|
|
|
| 59 |
print("Finished building the index!")
|
| 60 |
|
| 61 |
def find(self, term):
|
| 62 |
+
print(f"'{term}'")
|
| 63 |
return term in self.vocab_struct[(term[0], len(term))]
|
| 64 |
|
| 65 |
_VOCAB = StringIndex(vocab=open("./vocabulary_nachos_lowercased.txt","r").read().split("\n"))
|