qanastek commited on
Commit
6905064
·
1 Parent(s): 36c16f1

Update PxCorpus.py

Browse files
Files changed (1) hide show
  1. PxCorpus.py +0 -11
PxCorpus.py CHANGED
@@ -50,12 +50,6 @@ class StringIndex:
50
 
51
  # Index terms by their first letter and length
52
  key = (t[0], len(t))
53
-
54
- if t == "milligrammes":
55
- print("/"*50)
56
- print(key)
57
- print(key in self.vocab_struct)
58
- # exit(0)
59
 
60
  if (key in self.vocab_struct) == False:
61
  self.vocab_struct[key] = []
@@ -68,11 +62,6 @@ class StringIndex:
68
 
69
  key = (t[0], len(t))
70
 
71
- # if t == "milligrammes":
72
- # print("-"*50)
73
- # print(key)
74
- # print(key in self.vocab_struct)
75
-
76
  if (key in self.vocab_struct) == False:
77
  return "is_oov"
78
 
 
50
 
51
  # Index terms by their first letter and length
52
  key = (t[0], len(t))
 
 
 
 
 
 
53
 
54
  if (key in self.vocab_struct) == False:
55
  self.vocab_struct[key] = []
 
62
 
63
  key = (t[0], len(t))
64
 
 
 
 
 
 
65
  if (key in self.vocab_struct) == False:
66
  return "is_oov"
67