Skip to content

Commit cc6946e

Browse files
Dennis de SwartDennis de Swart
Dennis de Swart
authored and
Dennis de Swart
committed
updated readme
1 parent d490d90 commit cc6946e

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

README.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,12 @@ The adapter by default uses Stanford's online API service. This should work righ
4545
Note that the online API is a public service. If you want to analyze large volumes of text or sensitive data,
4646
please install the Java server version.
4747

48-
<br />
48+
49+
4950
# Installation / Walkthrough for Java server version
50-
<br />
51+
52+
53+
5154

5255

5356
## Step 1: install Java
@@ -60,7 +63,9 @@ https://java.com/en/download/help/index_installing.xml?os=All+Platforms&j=8&n=20
6063
```
6164
http://stanfordnlp.github.io/CoreNLP/index.html#download
6265
```
63-
<br />
66+
67+
68+
6469
## Step 3: Port for server
6570
Default port for the Java server is port 9000. If port 9000 is not available you can change the port in the "bootstrap.php" file. Example:
6671

@@ -88,23 +93,29 @@ When you surf to this URL, you should see the CoreNLP GUI. If you have problems
8893
http://stanfordnlp.github.io/CoreNLP/corenlp-server.html
8994
```
9095

91-
<br />
96+
97+
98+
9299
# Usage examples
93-
<br />
100+
101+
94102

95103
## Instantiate the adapter:
96104
```
97105
$coreNLP = new CorenlpAdapter();
98106
```
99-
<br />
107+
108+
100109
## To process a text, call the "getOutput" method:
101110
```
102111
$text = 'The Golden Gate Bridge was designed by Joseph Strauss.';
103112
$coreNLP->getOutput($text);
104113
```
105114

106115
Note that the first time that you process a text, the server takes about 20 to 30 seconds extra to load definitions. All other calls to the server after that will be much faster. Small texts are usually processed within seconds.
107-
<br /><br />
116+
117+
118+
108119
## The results
109120

110121
If successful the following properties will be available:

0 commit comments

Comments
 (0)