qanastek commited on
Commit
9d41607
·
1 Parent(s): 7053356

Update PxCorpus.py

Browse files
Files changed (1) hide show
  1. PxCorpus.py +1 -1
PxCorpus.py CHANGED
@@ -60,7 +60,7 @@ class StringIndex:
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"))
66
 
 
60
 
61
  def find(self, term):
62
  print(f"'{term}'")
63
+ return term in self.vocab_struct[(str(term)[0], len(str(term)))]
64
 
65
  _VOCAB = StringIndex(vocab=open("./vocabulary_nachos_lowercased.txt","r").read().split("\n"))
66