Add misc cleaning scripts for t0txt

This commit is contained in:
2022-06-20 00:53:56 +00:00
parent 6361a23977
commit 0698e695bf
4 changed files with 161 additions and 21 deletions
+20
View File
@@ -0,0 +1,20 @@
import shelve
db = shelve.open('data/t0txt')
num_qot = 0
num_not = 0
for key, value in db.items():
content = value.lower()
if 'qot' in content:
num_qot += 1
else:
num_not += 1
print('num qot:', num_qot)
print('num not:', num_not)
print('ratio:', num_qot / len(db))
print('Qot.')