PHP code example of patrickschur / stanford-nlp-tagger
1. Go to this page and download the library: Download patrickschur/stanford-nlp-tagger 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/ */
patrickschur / stanford-nlp-tagger example snippets
$pos = new \StanfordTagger\POSTagger();
$pos->tag('My dog also likes eating sausage.');
$pos = new \StanfordTagger\POSTagger();
$pos->setOutputFormat(StanfordTagger::OUTPUT_FORMAT_XML);
$pos->tag('My dog also likes eating sausage.');