forked from kristjan/cjvt-valency
Added gigafida to file creation
This commit is contained in:
@@ -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"]:
|
||||
|
||||
Submodule src/pkg/cjvt-corpusparser updated: 01adf47b9b...2e1d8d06b3
Reference in New Issue
Block a user