feat(reader): multi-word and phrasal verb detector in reader (Task 14)
This commit is contained in:
@@ -205,6 +205,13 @@ def _migrate(conn: sqlite3.Connection):
|
||||
# Auto-seed offline dictionary if empty
|
||||
_seed_offline_dictionary(conn)
|
||||
|
||||
# Seed curated phrasal verbs
|
||||
try:
|
||||
from app.phrasal import seed_curated_phrasal_verbs
|
||||
seed_curated_phrasal_verbs(conn)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
||||
def _seed_offline_dictionary(conn: sqlite3.Connection):
|
||||
"""Seeds the offline dictionary from data/offline_dict.tsv.gz if the table is empty."""
|
||||
|
||||
Reference in New Issue
Block a user