Hi,
I am trying NERTagger and for that
require_once 'StanfordNLP/Base.php';
require_once 'StanfordNLP/StanfordTagger.php';
require_once 'StanfordNLP/POSTagger.php';
require_once 'StanfordNLP/Exception.php';
require_once 'StanfordNLP/NERTagger.php';
$pos = new \StanfordNLP\NERTagger(
'/var/www/html/api/stanford-ner-2015-12-09/classifiers/english.all.3class.distsim.crf.ser.gz',
'/var/www/html/api/stanford-ner-2015-12-09/stanford-ner.jar'
);
include('autoload.php');
$result = $pos->tag(explode(' ', "The Federal Reserve Bank of New York led by Timothy R. Geithner."));
var_dump($result);
i wrote this much code but its returning me an empty array.
please help me with this issue.
Hi,
I am trying NERTagger and for that
require_once 'StanfordNLP/Base.php';
require_once 'StanfordNLP/StanfordTagger.php';
require_once 'StanfordNLP/POSTagger.php';
require_once 'StanfordNLP/Exception.php';
require_once 'StanfordNLP/NERTagger.php';
$pos = new \StanfordNLP\NERTagger(
'/var/www/html/api/stanford-ner-2015-12-09/classifiers/english.all.3class.distsim.crf.ser.gz',
'/var/www/html/api/stanford-ner-2015-12-09/stanford-ner.jar'
);
include('autoload.php');
$result = $pos->tag(explode(' ', "The Federal Reserve Bank of New York led by Timothy R. Geithner."));
var_dump($result);
i wrote this much code but its returning me an empty array.
please help me with this issue.