You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I may be interested in collaborating on some features, such as morphology-based search. I'm curious what the license status of this project is. Would you accept pull requests? Is the Morphology DB covered under creative commons with the rest of the SBLGNT?
Mitch
The text was updated successfully, but these errors were encountered:
I've been able to add morph codes to the concordance table, and use LIKE syntax for basic morphology searches. It still needs some work, but I thought it was worth reporting progress.
import sqlite3
con = sqlite3.connect('gnt-app.db')
cur = con.cursor()
id = 2
data = []
for row in cur.execute("SELECT * from verses;"):
book = row[0]
chapter = row[1]
verse = row[2]
encoded_text = row[3]
for word in encoded_text.split():
parts = word.split("_")
lemma = parts[1]
morph = parts[2]
data.append((id, lemma, morph, book, chapter, verse))
id += 1
cur2 = con.cursor()
cur2.executemany("INSERT INTO concordance VALUES (?, ?, ?, ?, ?, ?);", data)
data = []
con.commit()
Hey Matt,
I may be interested in collaborating on some features, such as morphology-based search. I'm curious what the license status of this project is. Would you accept pull requests? Is the Morphology DB covered under creative commons with the rest of the SBLGNT?
Mitch
The text was updated successfully, but these errors were encountered: