File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
backend/scaife_stack_atlas Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -371,7 +371,7 @@ def add_translations_to_trees(reset=None):
371
371
add_odyssey_english_translations ()
372
372
373
373
374
- def add_glosses_to_trees (reset = None ):
374
+ def add_glosses_to_trees (reset = None , debug = False ):
375
375
# NOTE: Reset is a no-op
376
376
collection_urn = "urn:cite2:beyond-translation:text_annotation_collection.atlas_v1:il_gregorycrane_gAGDT"
377
377
# TODO: Figure out why this query doesn't work as expected against
@@ -405,9 +405,9 @@ def add_glosses_to_trees(reset=None):
405
405
pass
406
406
elif word .get ("value" ) in ["[0]" , "[1]" ]:
407
407
pass
408
- elif word .get ("ref" ):
408
+ elif word .get ("ref" ) and debug :
409
409
print (f'{ word ["ref" ]} @{ word ["value" ]} ' )
410
- else :
410
+ elif debug :
411
411
print (f'{ word ["value" ]} ' )
412
412
# ~40 words unmapped with this naive pass
413
413
data = annotation .data if annotation else {}
You can’t perform that action at this time.
0 commit comments