PHP interface to Stanford NLP tools (POS Tagger, NER, Parser)
168
stars
51
forks
source link
Return an empty array when I am using NER tagger in php. My os is windows and I figure out all the exceptions I got an now the code is working properly. #5
hello, I too got a same problem and returns an empty array and now it says
" Error: Could not find or load main class edu.stanford.nlp.ie.crf.CRFClassifier
array(0) {
} "
could you please help me in this case and here is my code..
<?php
$pos = new \StanfordNLP\NERTagger(
'ner/classifiers/english.all.3class.distsim.crf.ser.gz',
'ner/stanford-ner.jar'
);
$result = $pos->tag(explode(' ', "The Federal Reserve Bank of New York led by Timothy R. Geithner."));
var_dump($result);
hello, I too got a same problem and returns an empty array and now it says
" Error: Could not find or load main class edu.stanford.nlp.ie.crf.CRFClassifier array(0) { } "
could you please help me in this case and here is my code.. <?php
require('Base.php'); require('Exception.php'); require('Parser.php'); require('StanfordTagger.php'); require('POSTagger.php'); require('NERTagger.php');
$pos = new \StanfordNLP\NERTagger( 'ner/classifiers/english.all.3class.distsim.crf.ser.gz', 'ner/stanford-ner.jar' ); $result = $pos->tag(explode(' ', "The Federal Reserve Bank of New York led by Timothy R. Geithner.")); var_dump($result);
?>