c
This commit is contained in:
parent
21bf06581c
commit
2e31346307
@ -22,4 +22,4 @@ wlc==1.13
|
||||
coloredlogs==15.0.1
|
||||
requests
|
||||
markdown
|
||||
textrank4zh
|
||||
git+https://github.com/luxtiasco/TextRank4ZH.git
|
@ -18,4 +18,4 @@ typing_extensions==4.5.0
|
||||
fasttext-predict==0.9.2.1
|
||||
requests
|
||||
markdown
|
||||
textrank4zh
|
||||
git+https://github.com/luxtiasco/TextRank4ZH.git
|
@ -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…
x
Reference in New Issue
Block a user