mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
c
This commit is contained in:
parent
21bf06581c
commit
2e31346307
4 changed files with 4 additions and 4 deletions
|
|
@ -654,7 +654,7 @@ def health():
|
|||
@app.route('/textrank', methods=['POST'])
|
||||
def textrank():
|
||||
res = []
|
||||
text = request.form.get('text')
|
||||
text = request.json['text']
|
||||
tr4s = TextRank4Sentence()
|
||||
tr4s.analyze(text=text, lower=True, source = 'all_filters')
|
||||
for item in tr4s.get_key_sentences(num=15):
|
||||
|
|
|
|||
|
|
@ -654,7 +654,7 @@ def health():
|
|||
@app.route('/textrank', methods=['POST'])
|
||||
def textrank():
|
||||
res = []
|
||||
text = request.form.get('text')
|
||||
text = request.json['text']
|
||||
tr4s = TextRank4Sentence()
|
||||
tr4s.analyze(text=text, lower=True, source = 'all_filters')
|
||||
for item in tr4s.get_key_sentences(num=15):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue