Skip to content

Commit 7d413a2

Browse files
Dennis de SwartDennis de Swart
authored andcommitted
Updated README
1 parent b85fb4b commit 7d413a2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ PHP adapter for use with Stanford CoreNLP
66

77
## Features
88
- Connect to Stanford University CoreNLP API online
9-
- Connect to Stanford CoreNLP 3.6.0 server
9+
- Connect to Stanford CoreNLP 3.7.0 server
1010
- The package gets the following annotator data: tokenize,ssplit,parse,regexner,pos,depparse,lemma,ner,natlog,openie,mention
1111
- The package creates Part-Of-Speech Trees with depth, parent- and child ID
1212

@@ -26,7 +26,7 @@ https://en.wikipedia.org/wiki/Subject%E2%80%93verb%E2%80%93object
2626

2727
## Requirements
2828
- PHP 5.3 or higher: it also works on PHP 7
29-
- Windows or Linux
29+
- Windows or Linux 64-bit, 8Gb memory or more recommended
3030
- Connection to Java server requires cURL.
3131
- Note: Connection to Stanford CoreNLP API online does NOT require cURL.
3232

@@ -71,7 +71,7 @@ please install the Java server version.
7171
https://java.com/en/download/help/index_installing.xml?os=All+Platforms&j=8&n=20
7272
```
7373

74-
## Step 2: installing the Stanford CoreNLP 3.6.0 server
74+
## Step 2: installing the Stanford CoreNLP 3.7.0 server
7575
```
7676
http://stanfordnlp.github.io/CoreNLP/index.html#download
7777
```
@@ -92,10 +92,10 @@ define('CURLURL' , 'http://localhost:9000/');
9292
Go to the download directory, then enter the following command:
9393

9494
```
95-
java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port 9000
95+
java -mx8g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port 9000
9696
```
97-
You can change the port to 9001 if port 9000 is busy (see step 3)
9897

98+
Important note: the Stanford manual says "-mx4g", however I found that this can lead to a Java OutOfMemory error. It is also important to use a 64-bit operating system with at enough memory (8Gb or more recommended)
9999

100100

101101
## Step 5: Test if the server has started by surfing to it's URL

0 commit comments

Comments
 (0)