Skip to content

Commit

Permalink
memory requirements in README
Browse files Browse the repository at this point in the history
  • Loading branch information
dasmith committed Mar 28, 2011
1 parent f3e1212 commit 1297486
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,12 @@ tar xvfz WNprolog-3.0.tar.gz

## Questions

If you think there may be a problem with this wrapper, first ensure you can run the Java program:
**Stanford CoreNLP tools require a large amount of free memory**. Java 5+ uses about 50% more RAM on 64-bit machines than 32-bit machines. 32-bit machine users can lower the memory requirements by changing `-Xmx3g` to `-Xmx2g` or even less.
If pexpect timesout while loading models, check to make sure you have enough memory and can run the server alone without your kernel killing the java process:

java -cp stanford-corenlp-2010-11-12.jar:stanford-corenlp-models-2010-11-06.jar:xom-1.2.6.jar:xom.jar:jgraph.jar:jgrapht.jar -Xmx3g edu.stanford.nlp.pipeline.StanfordCoreNLP -props default.properties

Then, send me (Dustin Smith) a message on GitHub or through email (contact information is available [on my webpage](http://web.media.mit.edu/~dustin).
You can reach me, Dustin Smith, by sending a message on GitHub or through email (contact information is available [on my webpage](http://web.media.mit.edu/~dustin).

# TODO

Expand Down
4 changes: 2 additions & 2 deletions jsonrpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def loads_request( self, string ):
if not isinstance(data["params"], (list, tuple)):
raise RPCInvalidRPC("""Invalid Request, "params" must be an array.""")
if len(data) != 3: raise RPCInvalidRPC("""Invalid Request, additional fields found.""")

print data
# notification / request
if data["id"] is None:
return data["method"], data["params"] #notification
Expand Down Expand Up @@ -901,7 +901,7 @@ def __req( self, methodname, args=None, kwargs=None, id=0 ):
req_str = self.__data_serializer.dumps_request( methodname, args, id )
else:
req_str = self.__data_serializer.dumps_request( methodname, kwargs, id )

print req_str
try:
resp_str = self.__transport.sendrecv( req_str )
except Exception,err:
Expand Down

0 comments on commit 1297486

Please sign in to comment.