Git Product home page Git Product logo

Comments (9)

sergey-tihon avatar sergey-tihon commented on May 12, 2024

Could you try to do it from another thread with larger stack size?
#43 (comment)

from stanford.nlp.net.

hendyharf avatar hendyharf commented on May 12, 2024

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.

mehmetilker avatar mehmetilker commented on May 12, 2024

@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.

hendyharf avatar hendyharf commented on May 12, 2024

@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.

mehmetilker avatar mehmetilker commented on May 12, 2024

@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.

hendyharf avatar hendyharf commented on May 12, 2024

@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.

hendyharf avatar hendyharf commented on May 12, 2024

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.

mehmetilker avatar mehmetilker commented on May 12, 2024

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.

mehmetilker avatar mehmetilker commented on May 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.