Permalink
Browse files

Redid fix for case-insensitive queries in Hebrew, Chinese, and German.

My [first fix](571c784) didn't fully fix the problem, but this one appears to do the trick.
  • Loading branch information...
1 parent 571c784 commit 42281106b2d0360dd4c5d4227fef450d921cdfea @econpy committed Jan 2, 2014
Showing with 5 additions and 1 deletion.
  1. +5 −1 getngrams.py
View
@@ -92,7 +92,11 @@ def runQuery(argumentString):
for col in df.columns:
if col.count('(All)') == 1:
df[col.replace(' (All)', '')] = df.pop(col)
- elif col.count(':') == 1 and col.count('_') >= 1:
+ elif col.count(':chi_') == 1 or corpus.startswith('chi_'):
+ pass
+ elif col.count(':ger_') == 1 or corpus.startswith('ger_'):
+ pass
+ elif col.count(':heb_') == 1 or corpus.startswith('heb_'):
pass
elif col.count('(All)') == 0 and col != 'year':
df.pop(col)

0 comments on commit 4228110

Please sign in to comment.