Skip to content

A error when I use “splitter.split_by_sentences_wrapper”,please help check the error #7

@Amen-bang

Description

@Amen-bang

when I use “splitted_from = splitter.split_by_sentences_wrapper(text1_prepared, lang_from)” return list,

But I see that there will be a conflict when insert sqlite ,specific error:

File "ling_test.py", line 36, in
aligner.fill_db(db_path, splitted_from, splitted_to)
File "lingtrain_aligner/aligner.py", line 498, in fill_db
db.executemany("insert into languages(key, val) values(?,?)", [("from", lang_from), ("to", lang_to)])
sqlite3.InterfaceError: Error binding parameter 1 - probably unsupported type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions