Comments (9)
Could you try to do it from another thread with larger stack size?
#43 (comment)
from stanford.nlp.net.
I'm not sure how to do that. Any references? Is it something like this?
new System.Threading.Thread(() =>
{
......
pipeline.annotate(document);
......
}, 414565).Start();
Do I have to write my own code under pipeline.annotate(document);
until close the brackets of the Thread? Or the thread code only until pipeline.annotate(document);
?
from stanford.nlp.net.
@hendyharf can you try without parse annotator ? If you are getting same error your problem can be something other then stack size problem.
If it works then check that your IIS Express is really working in 64bit mode. If your OS is 64 bit, alternatively you can try IIS (as a core windows service)...
And yes, it is enough to run annotate method in new thread... If it works then you have another problem. How to catch result...
from stanford.nlp.net.
@mehmetilker I've just tried to parse it without annotator
props.setProperty("", "tokenize, ssplit, parse");
It took for ages, like 15 minutes for me parse without annotator and it also didn't work at all.
I debugged whether which line of code was being executed and it didn't execute after Directory.SetCurrentDirectory(jarRoot);
. Not working from var pipeline = new StanfordCoreNLP(props);
till below.
My Windows is 64bit, My IIS Express and Visual Studio 2013 are also 64bit.
How am I supposed to do then? How to create a new thread to run annotator? Could you give me the full code? I stuck with this for a week. Really need a help. Thank you very much
from stanford.nlp.net.
@hendyharf annotators are tokenize, ssplit and parse. So you should remove just parse.
it should be like this: props.setProperty("annotators", "tokenize, ssplit");
from stanford.nlp.net.
@mehmetilker I got it, but exactly what I really want to do with Stanford CoreNLP is the dependency parser, so I need to write the "parse". Any other ideas? I still can't figure it out.
from stanford.nlp.net.
Hey @sergey-tihon @mehmetilker I've already had the answer for this issue. I'm doing this with Local IIS and it works sometimes, I still got the StackOverflowException. How am I supposed to do to make a larger size stack? The code you've given it doesn't work. It's not returning anything if I write inside the thread. Any other code? I'm stuck with this 3 weeks. Thanks
from stanford.nlp.net.
I guess you need first check if your OS 64bit.
After that you need to be sure if your IIS express is working in 64bit mode.
http://stackoverflow.com/questions/10202047/cant-get-iis-express-8-beta-to-run-website-as-64-bit-process
It looks like it is not possible before VS 2013
https://visualstudio.uservoice.com/forums/121579-visual-studio-2015/suggestions/3254745-allow-for-iis-express-64-bit-to-run-from-visual-st
If you are sure you OS is 64 bit and service or Express IIS is working in 64 bit mode and you still getting same error then your problem should be something else.
from stanford.nlp.net.
Another setting for 64bit IIS Express
https://blogs.msdn.microsoft.com/rob/2013/11/14/debugging-vs2013-websites-using-64-bit-iis-express/
from stanford.nlp.net.
Related Issues (20)
- c# issues HOT 6
- snk file not found HOT 3
- Calssifier Demo and how i can do it ? HOT 1
- Setup config HOT 3
- Assembly 'Assets/Plugins/stanford-corenlp-3.9.2.dll' will not be loaded due to errors HOT 1
- POS-Tagging in other languages HOT 4
- Add samples of loading configuration from config.properties file
- The new .NET Core merge works except very minor issues HOT 1
- Feedback Additional Standford.NLP Tools: PyTorch Dependency Parser HOT 1
- Help needed: Getting Dependency Visualization Brat to work in Blazor
- CoreNLP Server HOT 6
- Tests for other Langauges HOT 4
- Signed version for stanford.nlp.PosTagger HOT 2
- Upgrade 4.5.5? HOT 4
- System.TypeLoadException: Could not load type 'ikvm.internal.ClassLiteral` HOT 2
- Relationship between NLP, NER, Segmenter HOT 1
- SimpleTensor ClassNotFoundException - Wrong directory? HOT 4
- How do I get constituents from a tree annotation? HOT 10
- Is is possible to loop through the dependencies of the Semantic Graph Annotation? HOT 1
- Transform Words into Sentences and Paragraphs? HOT 1
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 stanford.nlp.net.