Skip to content

Empty Array Returned  #20

Description

@saddy206

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions