testing with trees without pgf

This commit is contained in:
Aarne Ranta
2025-05-07 10:15:42 +02:00
parent 262b3fe129
commit 034f3a4771
4 changed files with 2542 additions and 3 deletions

View File

@@ -78,6 +78,7 @@ def grammar_description(grammar, fundata, d, lang):
died = pgf.readExpr(
f"DiedSentence ({name(d)}) (YearDate {year(d['deathDate'])})")
sentences.append(died)
# return ('\n '.join([str(s) for s in sentences]))
return ' '.join([lang.linearize(s) + '.' for s in sentences])
@@ -93,3 +94,4 @@ else: