Exemplo n.º 1
0
def search_news():
    # 获取查询字段
    query_line = request.args.get("query")
    # 返回url
    data = TextRank.Get_sample_news(query_line, url_list, dictionary,
                                    tfidf_vectors)
    return jsonify(data)