Code Monkey home page Code Monkey logo

Comments (13)

JimSEOW avatar JimSEOW commented on September 13, 2024

The model directory ends with \stanford-segmenter-2015-04-20\data";

from stanford.nlp.net.

sergey-tihon avatar sergey-tihon commented on September 13, 2024

Plz try to add these 3 lines
https://github.com/sergey-tihon/Stanford.NLP.NET/blob/master/tests/Stanford.NLP.Segmenter.FSharp.Tests/Segmenter.fs#L23-L25
// cc @volhav

from stanford.nlp.net.

sergey-tihon avatar sergey-tihon commented on September 13, 2024

hmm, no - you do not need these lines.
After small changes in sample from docs dbe091b
it should work like this
segmenter
Note, that this is 32bit version of F# interactive

from stanford.nlp.net.

JimSEOW avatar JimSEOW commented on September 13, 2024

I need c# sample to work. Please kindly check. So far, most of my problem involving ikvm converted jar to dll hangs will loading large size of model. any advice?

from stanford.nlp.net.

JimSEOW avatar JimSEOW commented on September 13, 2024

The c# sample provide this on output window
The thread 0x35e8 has exited with code 259 (0x103).
The thread 0x1808 has exited with code 259 (0x103).
The thread 0x2d4c has exited with code 259 (0x103).
The thread 0x3d74 has exited with code 0 (0x0).

For more information to people debuging ikvm ported program
http://stackoverflow.com/questions/18887864/what-is-a-thread-exit-code

from stanford.nlp.net.

JimSEOW avatar JimSEOW commented on September 13, 2024

Finally, I get the output. Problem, it takes not 20+ seconds like in running java, but 15+ minutes. Not sure why. Second, the output is in wrong encoding.
闈㈠ 鏂?涓栫邯 锛?涓栫晫 鍚?鍥?浜烘皯 鐨?鍏卞悓 鎰挎湜 鏄?锛?缁х画 鍙戝睍 浜虹被 浠ュ線 鍒涢€?鐨?涓€鍒?鏂囨槑 鎴愭灉 锛?鍏嬫湇 20 涓栫邯 鍥版壈 鐫€ 浜虹被 鐨?鎴樹簤 鍜?璐洶 闂 锛?鎺ㄨ繘 鍜屽钩 涓?鍙戝睍 鐨?宕囬珮 浜嬩笟 锛?鍒涢€?涓€ 涓?缇庡ソ 鐨?涓栫晫 銆?

Perhaps, there is something wrong with loading the model file due to my window 8 setting in dealing with Chinese encoding. This explain why in my case, I find problem unique to me. However, for beginners who are not familiar with Chinese encoding, my experience hopefully helps others.

from stanford.nlp.net.

sergey-tihon avatar sergey-tihon commented on September 13, 2024

x32 ок x64 ? Could you try to build you app in Release mode for x32 arch?

from stanford.nlp.net.

JimSEOW avatar JimSEOW commented on September 13, 2024

could you send me a simple console zip file of compiled c# segmentation sample for me to diagnose what is wrong with my windows 8 visual studio 2013 issues ?

from stanford.nlp.net.

JimSEOW avatar JimSEOW commented on September 13, 2024

I have compiled x64 release, it has been more than 10+ minutes, I am still waiting for the output

from stanford.nlp.net.

sergey-tihon avatar sergey-tihon commented on September 13, 2024

would be interesting to compare it with the same code compiled for x32

from stanford.nlp.net.

JimSEOW avatar JimSEOW commented on September 13, 2024

Not sure I understand your rationale for doing so. I have started to move to java, abandoning .NET for stanfordNLP as I could not figure out the problem. Thanks for your help

from stanford.nlp.net.

JimSEOW avatar JimSEOW commented on September 13, 2024

May be this could help others learning Stanfordnlp:NET - contributed by you
https://visualstudiogallery.msdn.microsoft.com/540ac2d8-f881-4794-8b00-810d28257b70

from stanford.nlp.net.

JimSEOW avatar JimSEOW commented on September 13, 2024

I solved my problems.

I changed the testfile to avoid this. It has to do with my Windows 8 settings. Using new Chinese textfile or textstring defined in the code, I get the expected results.

Below only happens to the provided testfile. Have not figure out why yet.

闈㈠ 鏂?涓栫邯 锛?涓栫晫 鍚?鍥?浜烘皯 鐨?鍏卞悓 鎰挎湜 鏄?锛?缁х画 鍙戝睍 浜虹被 浠ュ線 鍒涢€?鐨?涓€鍒?鏂囨槑 鎴愭灉 锛?鍏嬫湇 20 涓栫邯 鍥版壈 鐫€ 浜虹被 鐨?鎴樹簤 鍜?璐洶 闂 锛?鎺ㄨ繘 鍜屽钩 涓?鍙戝睍 鐨?宕囬珮 浜嬩笟 锛?鍒涢€?涓€ 涓?缇庡ソ 鐨?涓栫晫 銆?

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.