-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testng Kveta on all the poems from CCV
- Loading branch information
1 parent
2cc926a
commit 83a9dc2
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import os | ||
import json | ||
import kveta | ||
|
||
DATADIR = "/net/projects/EduPo/data/KCV_komplet/ccv/" | ||
|
||
for fname in sorted(os.listdir(DATADIR)): | ||
if os.path.isfile(DATADIR+fname) and fname.endswith(".json"): | ||
f = open(DATADIR+fname) | ||
data = json.load(f) | ||
print("Testuji soubor", fname, flush=True) | ||
text = "" | ||
for i in range(len(data[0]["body"])): | ||
for j in range(len(data[0]["body"][i])): | ||
text += data[0]["body"][i][j]["text"] + "\n" | ||
text += "\n" | ||
kveta.okvetuj(text) | ||
|
||
|
||
|
||
|
||
|