PHP code example of kirschbaum-development / redactor-onnx
1. Go to this page and download the library: Download kirschbaum-development/redactor-onnx library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kirschbaum-development / redactor-onnx example snippets
'recognition' => [
'enabled' => true,
'driver' => 'onnx',
'entities' => ['PERSON', 'LOCATION', 'ORGANIZATION'],
],
use Kirschbaum\Redactor\Facades\Redactor;
Redactor::redact('Please call John Smith in Berlin about the invoice', 'exports');
// 'Please call [REDACTED] in [REDACTED] about the invoice'