Skip to content

Commit

Permalink
no error nodes anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkroorda committed May 10, 2023
1 parent a0ea956 commit 2710fcc
Show file tree
Hide file tree
Showing 47 changed files with 3,320,103 additions and 287 deletions.
2 changes: 1 addition & 1 deletion app/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ provenanceSpec:
corpus: '{org} - {repo}{relative}'
doi: 10.5281/zenodo.notyet
moduleSpecs: []
version: 0.3.1
version: 0.3.2
webBase: https://public.{org}.org/{repo}
webHint: Show this on the website
webLang: en
Expand Down
9 changes: 9 additions & 0 deletions programs/lowfat.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

from tf.convert.helpers import NEST

# set this to true if you want to create demo data on the oldest
# xml version with the first sentence of Jude twice:
# once without and once with slot reordering
demoMode = False


Expand Down Expand Up @@ -225,6 +228,9 @@ def beforeChildren(cv, cur, node, tag):
if atts.get(m, None) == "true":
atts[m] = 1

if tag == "error":
tag = "wg"

if tag == "w":
# atts["text"] = atts["unicode"]
atts["text"] = node.text
Expand Down Expand Up @@ -302,6 +308,9 @@ def afterChildren(cv, cur, node, tag):
tag: string
The tag of the lxml node.
"""
if tag == "error":
tag = "wg"

if tag not in PASS_THROUGH:
if tag == "book":
cv.terminate(cur["verse"])
Expand Down
627 changes: 341 additions & 286 deletions programs/tfFromLowfat.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 2710fcc

Please sign in to comment.