ai
  • 简介
  • 百度AI
    • 人脸识别
      • 人脸库管理
      • 人脸检测
      • 人脸搜索
      • 人脸对比
      • 身份验证
    • OCR文字识别
    • 图像识别
    • 人体分析
    • nlp自然语言
  • 腾讯AI
    • OCR文字识别
    • 人脸识别
      • 人脸库管理
    • 图片特效
    • 图片识别
    • 敏感信息审核
    • 智能闲聊
    • 机器翻译
    • 基础文本分析
    • 语义解析
    • 语音识别
    • 语音合成
Powered by GitBook
On this page
  • 分词
  • 词性
  • 专有名词
  • 同义词

Was this helpful?

  1. 腾讯AI

基础文本分析

分词

$res = $ai->nlp()->wordSeg([
    'text' => '今天天气怎么样'
]);


if($res->success()){
    var_dump($res->toArray());
}

词性

$res = $ai->nlp()->wordPos([
    'text' => '今天天气怎么样'
]);


if($res->success()){
    var_dump($res->toArray());
}

专有名词

$res = $ai->nlp()->wordNer([
    'text' => '今天天气怎么样'
]);


if($res->success()){
    var_dump($res->toArray());
}

同义词

$res = $ai->nlp()->wordSyn([
    'text' => '今天天气怎么样'
]);

if($res->success()){
    var_dump($res->toArray());
}
Previous机器翻译Next语义解析

Last updated 6 years ago

Was this helpful?