Skip to content

Commit d490d90

Browse files
Dennis de SwartDennis de Swart
authored andcommitted
updated readme
1 parent d02e84b commit d490d90

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

README.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22
# PHP Stanford CoreNLP adapter
33

44
PHP adapter for use with Stanford CoreNLP
5-
<br />
5+
6+
67
## Features
78
- Connect to Stanford University CoreNLP API online
89
- Connect to Stanford CoreNLP 3.6.0 server
910
- The package gets the following annotator data: tokenize,ssplit,parse,regexner,pos,depparse,lemma,ner,natlog,openie,dcoref,mention,coref
1011
- The package creates Part-Of-Speech Trees with depth, parent- and child ID
11-
<br />
12+
13+
1214

1315
## Requirements
1416
- PHP 5.3 or higher: it also works on PHP 7
@@ -33,9 +35,11 @@ You can install the adapter by putting the following line into your composer.jso
3335
}
3436
```
3537

36-
<br />
38+
39+
3740
# Using the Stanford CoreNLP online API service
38-
<br />
41+
42+
3943

4044
The adapter by default uses Stanford's online API service. This should work right after the composer update.
4145
Note that the online API is a public service. If you want to analyze large volumes of text or sensitive data,
@@ -73,7 +77,8 @@ java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port 9000
7377
```
7478
You can change the port to 9001 if port 9000 is busy.
7579

76-
<br />
80+
81+
7782
## Step 5: Test if the server has started by surfing to it's URL
7883
```
7984
http://localhost:9000/
@@ -109,7 +114,9 @@ If successful the following properties will be available:
109114
110115
$coreNLP->getWordValues($coreNLP->trees[1]) // get just the words from a tree
111116
```
112-
<br /><br />
117+
118+
119+
113120

114121
********************************
115122
### Diagram A: Tree With Tokens
@@ -728,7 +735,8 @@ Array
728735
## Any questions?
729736

730737
Please let me know.
731-
<br /><br />
738+
739+
732740
## Credits
733741

734742
Some functions are forked from this "Stanford parser" package:

0 commit comments

Comments
 (0)