Кейс 1. Автоматический разбор договора (Legal / CRM)
Сценарий
Пример входного текста
This Agreement is made on March 12, 2025 between Apple Inc. and John Smith in London for the amount of $3,000,000.через MITIE (локально)
composer require ankane/mitie-php<?php
require 'vendor/autoload.php';
$ner = new \Mitie\Ner('/path/to/ner_model.dat');
$text = "This Agreement is made on March 12, 2025 between Apple Inc. and John Smith in London for the amount of $3,000,000.";
$entities = $ner->extractEntities($text);
foreach ($entities as $entity) {
echo $entity->getTag() . " → " . $entity->getValue() . "\n;
}Инженерный смысл
Last updated