@@ -7,37 +7,31 @@ PHP adapter for use with Stanford CoreNLP
77## Features
88- Connect to Stanford University CoreNLP API online
99- Connect to Stanford CoreNLP 3.7.0 server
10- - The package gets the following annotator data : tokenize,ssplit,parse,regexner,pos,depparse ,lemma,ner, natlog,openie,mention
10+ - Annotators available : tokenize,ssplit,pos, parse, depparse, ner, regexner ,lemma, mention, natlog, coref, openie, kbp
1111- The package creates Part-Of-Speech Trees with depth, parent- and child ID
1212
1313
14- ## OpenIE (adapter version 4.0.0+, only on the Java version)
15-
16- OpenIE creates "subject-relation-object" tuples. This is similar (but not the same) as the "Subject-Verb-Object" concept of the English language.
17-
18- Notes:
19- - OpenIE is only available on the Java offline version, not with the "online" mode. See the installation walkthrough below
20- - OpenIE data is not always available. Sometimes the result array might show empty, this is not an error.
21-
22- ```
23- http://nlp.stanford.edu/software/openie.html
24- https://en.wikipedia.org/wiki/Subject%E2%80%93verb%E2%80%93object
25- ```
26-
2714## Requirements
28- - PHP 5.3 or higher: it also works on PHP 7
15+ - PHP 5.5 or higher: it also works on PHP 7
2916- Windows or Linux 64-bit, 8Gb memory or more recommended
30- - Connection to Java server requires cURL.
31- - Note: Connection to Stanford CoreNLP API online does NOT require cURL.
32-
17+ - Either Guzzle HTTP Client (installed by default) or only cURL.
18+ - Composer for PHP
3319```
34- https://en.wikipedia. org/wiki/CURL
20+ https://getcomposer. org/
3521```
3622
3723
24+ ## Installation using ZIP files
25+
26+ - Install Stanford CoreNLP Server. See the installation walkthrough below.
27+ - Download and unpack the files from this package.
28+ - Copy the files to your to your webserver directory. Usually "htdocs" or "var/www".
29+ - Run a Composer update
30+
31+
3832## Installation using Composer
3933
40- You can install the adapter by putting the following line into your composer.json and running a composer update
34+ - Insert the following line into the "require" of your " composer.json" file.
4135
4236```
4337 {
@@ -47,20 +41,32 @@ You can install the adapter by putting the following line into your composer.jso
4741 }
4842```
4943
44+ - Run a composer update
5045
5146
5247# Using the Stanford CoreNLP online API service
5348
5449
55-
5650The adapter by default uses Stanford's online API service. This should work right after the composer update.
5751Note that the online API is a public service. If you want to analyze large volumes of text or sensitive data,
5852please install the Java server version.
5953
6054
55+ ## OpenIE
6156
62- # Installation / Walkthrough for Java server version
57+ OpenIE creates "subject-relation-object" tuples. This is similar (but not the same) as the "Subject-Verb-Object" concept of the English language.
58+
59+ Notes:
60+ - OpenIE is only available on the Java offline version, not with the "online" mode. See the installation walkthrough below
61+ - OpenIE data is not always available. Sometimes the result array might show empty, this is not an error.
6362
63+ ```
64+ http://nlp.stanford.edu/software/openie.html
65+ https://en.wikipedia.org/wiki/Subject-verb-object
66+ ```
67+
68+
69+ # Installation / Walkthrough for Java server version
6470
6571
6672
0 commit comments