mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
c
This commit is contained in:
parent
435e8a482d
commit
5051022e09
4 changed files with 6 additions and 4 deletions
|
@ -23,4 +23,5 @@ coloredlogs==15.0.1
|
|||
requests
|
||||
markdown
|
||||
tiktoken
|
||||
pycorrector
|
||||
git+https://github.com/luxtiasco/TextRank4ZH.git
|
|
@ -19,4 +19,5 @@ fasttext-predict==0.9.2.1
|
|||
requests
|
||||
markdown
|
||||
tiktoken
|
||||
pycorrector
|
||||
git+https://github.com/luxtiasco/TextRank4ZH.git
|
|
@ -18,7 +18,7 @@ import markdown
|
|||
import re
|
||||
import datetime
|
||||
from textrank4zh import TextRank4Keyword, TextRank4Sentence
|
||||
from collections import defaultdict
|
||||
import pycorrector
|
||||
|
||||
from timeit import default_timer
|
||||
from html import escape
|
||||
|
@ -1946,7 +1946,7 @@ class DFA:
|
|||
self.ban_words_list = list()
|
||||
self.ban_words_dict = dict()
|
||||
if not path:
|
||||
self.path = 'keyword'
|
||||
self.path = 'keywords'
|
||||
else:
|
||||
self.path = path
|
||||
self.get_words()
|
||||
|
|
|
@ -18,7 +18,7 @@ import markdown
|
|||
import re
|
||||
import datetime
|
||||
from textrank4zh import TextRank4Keyword, TextRank4Sentence
|
||||
from collections import defaultdict
|
||||
import pycorrector
|
||||
|
||||
from timeit import default_timer
|
||||
from html import escape
|
||||
|
@ -2993,7 +2993,7 @@ class DFA:
|
|||
self.ban_words_list = list()
|
||||
self.ban_words_dict = dict()
|
||||
if not path:
|
||||
self.path = 'keyword'
|
||||
self.path = 'keywords'
|
||||
else:
|
||||
self.path = path
|
||||
self.get_words()
|
||||
|
|
Loading…
Add table
Reference in a new issue