keybert/tests/wrapper.http

23 lines
735 B
Text
Raw Normal View History

2023-07-23 16:01:28 -04:00
###
POST http://0.0.0.0:5000/load_model
Content-Type: application/json
{
"model_name": "paraphrase-multilingual-mpnet-base-v2"
}
###
POST http://0.0.0.0:5000/extract_keywords
Content-Type: application/json
{
"model_name": "paraphrase-multilingual-mpnet-base-v2",
"docs": "The history of natural language processing (NLP) generally started in the 1950s, although work can be found from earlier periods. In 1950, Alan Turing published an article titled \"Computing Machinery and Intelligence\" which proposed what is now called the Turing test as a criterion of intelligence.",
"keyphrase_ngram_range": [1, 1],
"top_n": 5,
"min_df": 1,
"use_maxsum": false,
"use_mmr": false,
"diversity": 0.5,
"nr_candidates": 20
}