文档
测试

TextRank_keyphrases

POST

请求参数

参数名
类型
描述
必填
id
int
文本编号,示例:128576
必填
content
string
文本内容,示例:伴有ALK基因融合的非小细胞肺癌手术患 者与预后差相关,无复发生存时间(recurrence-free survival,RFS)较短……
必填
label
string
文本标签,示例:肺癌
必填
config
object
查询配置
必填
window
int
窗口大小,int,用来构造单词之间的边。默认值为2。
可选
lower
boolean
是否将文本转换为小写。默认为False。
可选
vertex_source
string
选择使用words_no_filter, words_no_stop_words, words_all_filters中的哪一个来构造pagerank对应的图中的节点。 默认值为'all_filters'
可选
edge_source
string
选择使用words_no_filter, words_no_stop_words, words_all_filters中的哪一个来构造pagerank对应的图中的节点之间的边。 默认值为'no_stop_words'
可选
keywords_num
int
获取 keywords_num 个关键词构造的可能出现的短语
必填
min_occur_num
int
在原文本中至少出现的次数为min_occur_num
必填

响应参数

参数名
类型
描述
必填
id
int
示例:128576
必填
content
string
示例:伴有ALK基因融合的非小细胞肺癌手术患 者与预后差相关,无复发生存时间(recurrence-free survival,RFS)较短……
必填
label
string
示例:肺癌
必填
phrase
array
关键短语,示例:["肿瘤医院病理科,医院病理科,医院肿瘤,肿瘤医院肿瘤"]
必填