支持联想中文、英文、日语、韩文等四种语言的关键词
https://api.colorpuss.com/nlp/words/associativeWords/?text=猫&lang=zh,en,jp,ko
$.ajax({ type: 'GET', url: 'https://api.colorpuss.com/nlp/words/associativeWords/', data: { text: '猫', lang: 'zh,en,jp,ko' }, dataType: 'json'});
$text = '猫';$lang = 'zh,en,jp,ko';$ch = curl_init();curl_setopt($ch, CURLOPT_URL, 'https://api.colorpuss.com/nlp/words/associativeWords/?text='.$text.'&lang='.$lang);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);$result = curl_exec($ch);curl_close($ch);echo $result;
["猫","猫ちゃん","猫又小粥","橘猫","猫耳","薮猫","黑猫","猫耳朵","猫羽雫","猫头鹰"]
说明:本示例仅供参考。
2022年07月08日 正式开放