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