Added gigafida to file creation

This commit is contained in:
2019-09-06 10:27:03 +02:00
parent b4db4e5255
commit c803057164
6 changed files with 1256205 additions and 6 deletions

View File

@@ -37,7 +37,8 @@ app = Flask(__name__)
app.config.from_object("db_config")
mongo = PyMongo(app)
app.config["CORPORA"] = ["ssj", "kres"]
# app.config["CORPORA"] = ["ssj", "kres"]
app.config["CORPORA"] = ["ssj"]
app.config["BANNED_HEADWORDS"] = ["biti"]
app.config["QUERY_LIMIT"] = 1000
@@ -452,9 +453,18 @@ def prepare_app_index(appindex_json, sskj_wordlist):
res_hws = {}
res_fns = {}
print('CORPUS...!!...')
print(corpus)
a = mongo.db[corpus]
print('TEST_OK')
print(a)
print(mongo.db)
a = mongo.db.list_collection_names()
print('TEST_OK2')
nentries = mongo.db[corpus].count()
idx = 0
for e in mongo.db[corpus].find({}):
print('aaa')
if "headwords" not in e:
continue
for hw in e["headwords"]: