Comments (7)
Hi, I think the problem here is probably the object property called "serverMemory" (see line 106 in CorenlpAdapter class). It was declared a string. But in the code it is an array. So I changed the declaration to an array. Can you check that it works?
Either download a new copy or change line 16 in CorenlpAdapter.php to this:
"public $serverMemory = array(); // keeps all the output"
from php-stanford-corenlp-adapter.
from php-stanford-corenlp-adapter.
I had to resize up my server to test to 8 gig (it is still slow running corenlp), I wlll test again tonight.
Running 8Gb or more is highly recommended for running your own Java CoreNLP server. In my experience it make errors if it runs out of memory.
from php-stanford-corenlp-adapter.
Does this support the quoteannotator if I am not running in API mode?
If your run your own Java CoreNLP server you can do everything that the online API can. Plus more. If you look at the example in the README, you can see "lemma" for example. I think the online API does not do that.
I would recommend installing your own CoreNLP server to get all the text information. The online API can be useful to test your program and because it is usually faster than running your own server.
from php-stanford-corenlp-adapter.
from php-stanford-corenlp-adapter.
If you look at "bootstrap.php", find the CURLPROPERTIES. You replace the standard CURLPROPERTIES with a customized one, that contains quote. The example below will probably work, but not sure. I will test it later today or tomorrow.
define('CURLPROPERTIES' , '%22annotators%22%3A%22tokenize%2Cquote%2Cregexner%2Cparse%2Cdepparse%2Cpos%2Clemma%2Cmention%2Copenie%2Cner%2Ccoref%2Ckbp%22%2C%22prettyPrint%22%3A%22true%22');
I will also try to make it a bit easier to add annotators later this week. Also note that this might only work with the Java version, and not the Online API (so ONLINE_API = false)
from php-stanford-corenlp-adapter.
from php-stanford-corenlp-adapter.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-stanford-corenlp-adapter.