Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/244.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google Cloud自然语言API有一个错误:AnnotateTextRequest.features在PHP中为空_Php_Google Cloud Platform - Fatal编程技术网

Google Cloud自然语言API有一个错误:AnnotateTextRequest.features在PHP中为空

Google Cloud自然语言API有一个错误:AnnotateTextRequest.features在PHP中为空,php,google-cloud-platform,Php,Google Cloud Platform,我没有找到解决方案,我在base中编写了我在web中找到的其他代码,因为在Google not exist php示例中,我有下一个代码: 我修复了我的代码,我缺少“功能”,我在页面中看到:,在和我在$msg var中发布了我的代码: $msg=array ( '文档'=>数组( '类型'=>'纯文本', “内容”=>“意大利画家米开朗基罗·卡拉瓦乔以 “圣马修的召唤” ), '功能'=>阵列( “extractSyntax”=>true, “提取实体”=>false, “提取文档情感”=>

我没有找到解决方案,我在base中编写了我在web中找到的其他代码,因为在Google not exist php示例中,我有下一个代码:


我修复了我的代码,我缺少“功能”,我在页面中看到:,在和我在$msg var中发布了我的代码:

$msg=array
(
'文档'=>数组(
'类型'=>'纯文本',
“内容”=>“意大利画家米开朗基罗·卡拉瓦乔以
“圣马修的召唤”
),
'功能'=>阵列(
“extractSyntax”=>true,
“提取实体”=>false,
“提取文档情感”=>错误
),
'encodingType'=>'UTF8',

);你让它工作了吗。我总是遇到这样的错误:“无法通过客户端项目识别请求。请随请求传递有效的API密钥。”在使用此API时,仅供参考