for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the strays/baidu-ai.
*
* (c) strays <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Strays\BaiDuAi\Language\Lexer;
use Strays\BaiDuAi\Kernel\BaseClient;
class Client extends BaseClient
{
/**
* 词法分析.
* @param string $text
* @return string
public function send(string $text)
$body = [
'text' => $text,
];
return $this->httpPostJson('/rpc/2.0/nlp/v1/lexer', $body);
}
* 词法分析定制.
public function custom(string $text)
return $this->httpPostJson('/rpc/2.0/nlp/v1/lexer_custom', $body);