Update docs
This commit is contained in:
parent
c03c025773
commit
d08f1f94ec
2 changed files with 10 additions and 7 deletions
|
|
@ -11,8 +11,8 @@ def make_sentence(cfg):
|
|||
|
||||
db = sqlite3.connect(cfg["db_path"])
|
||||
db.text_factory = str
|
||||
p = regex.compile(r"\L<words>", words=cfg["ignored_cws"],flags=regex.IGNORECASE)
|
||||
def cw_regexp(x):
|
||||
p = regex.compile(r"\L<words>", words=cfg["ignored_cws"],flags=regex.IGNORECASE)
|
||||
return 1 if p.search(x) else 0
|
||||
db.create_function('cwregexp', 1, cw_regexp)
|
||||
c = db.cursor()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue