Hello everyone and thanks for your help in advance. I am brand new to trying to use Stanford NLP and am trying to follow the C# example at https://sergey-tihon.github.io/Stanford.NLP.NET/samples/CoreNLP.Pipeline.html. I am recweiving an error:
An unhandled exception of type 'edu.stanford.nlp.io.RuntimeIOException' occurred in stanford-corenlp-3.9.1.dll
Additional information: Couldn't read TokensRegexNER from edu/stanford/nlp/models/kbp/regexner_caseless.tab
The error is being thrown at the line:
var pipeline = new StanfordCoreNLP(props);
I've been searching this error buthaven't found a resolution yet. Since I've never worked with NLP and have never worked with jar files, I'm wondering if I simply have my folders and paths incorrectly set up but don't inow how to proceed. Any help would be appreciated.
Related
I am using fb_graph2(1.1.1) in my rails project. My goal is to get all pages/accounts associated with a particular account. I am using this document as a reference. And below is my code line which I wrote to get accounts. For some reason I am getting an error "An unknown error has occurred."
It would be great if someone can guide where and what am I doing wrong. Thanks!
FbGraph2::User.me(<ACCESS_TOKEN>).accounts
I try to get LDAMallet in gensim working, but get the following error
'C:\...\AppData\Local\Temp\eb09f5_state.mallet.gz' not found
The code
ldamallet = gensim.models.\
wrappers.LdaMallet(mallet_path,
corpus=corpus,
num_topics=5,
id2word=dictionary)
(the num_topics is extremely small, but the test goes over 5 sentences; this has no problem in the regular gensim LdaModel)
thanks,
I was facing the same issue. The error I got was as follows:
IOError: [Errno 2] No such file or directory c:\\users\\...\\appdata\\local\\temp \\d36348_state.mallet.gz.
Each time I tried to run the code the prefix before the underscore would change but the error name would always end with the form "~Some Alphanumeric String~_state.mallet.gz".
I tried to understand the stack trace output in the console. The line just before this error line was as follows:
fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
I googled it and found this particular link. It is a github link where a person raised a different error, but the ending part of his error log was the same as mine. The solution to his error was an upgrade of his smart_open module, which gensim depends on, as the upgrade had fixed the issue. So i checked my smart_open module version and it was 1.4.x, last updated about a year and a half ago, so I upgraded it to the version 1.5.7 and the LdaMallet code works without a hiccup.
Please check if the problem on your end is being caused because of the same reasons.
Hope it helps!
P.S. I also updated my gensim module alongside the smart_open to version 3.4.
I am getting Exception in thread "main" java.lang.NoClassDefFoundError: org/xerial/snappy/SnappyInputStream error in validate and split records processor in standard-ingest template which i am unable to resolve.
This is happening for both csv and json data.
Can anyone please help me on this.
Found the solution.. It was due to mismatch of the jar version of snappy-java.
Initially i had added snappy-java-1.0.4.1 which created the above problem.
After adding snappy-java-1.1.0 to the spark classpath.txt the problem got resolved!
I'm using Processing 3 for generating a Treemap.I installed gicentreUtils and placed TreeMappa file in the library folder of Processing. I'm getting nullPointerException in line:
pTreeMappa = new PTreeMappa(this).
The full code can be found in this
link
Can someone please let me know how to resolve this error.
Thanks
It seems the TreeMapa library hasn't been updated in a few years and internally it may use some Processing code that changed from version 2.x to 3.x (like windows/frames/etc.) which is why the error might occur.
I advise using TreeMapa with Processing 2.2.1 available on the Processing Downloads page
My application running in tomcat 6. I have integrated freemarker template with Spring MVC.
I have "abct.ftl" under "freemarker/pages" and "xyz.ftl" under "freemarker/pages
/formal". I am including "abc.ftl" in "xyz.ftl" using "<#include
"../abc.ftl"/>".
This is working fine on MACH and LINUX but its giving below error on windows 7. I did search
for this error in google and tried many things but nothing helped fixing this issue.
The exception stack trace is given below:
freemarker.template.TemplateException: Error reading included file abc.ftl
at freemarker.core.Include.accept(Include.java:167)
Caused by: java.io.FileNotFoundException: Template abc.ftl not found.
Please help me fixing this issue.
Thanks
Thanks everyone for helping me on this issue.
I have found the solution to this problem so wanted to share it with you guys.
I went through the following documentation on freemarker site and found the solution:
http://freemarker.org/docs/pgui_config_templateloading.html#autoid_41[freemarker.org]
As suggested in this documentation, I replaced <#include "../abc.ftl"/> with <#include "/pages/abc.ftl"/>.
Freemarker documentation says, “FreeMarker always normalizes the paths before passing them to the template loader, so the paths do not contain/../ and such, and are relative to the imaginary template root directory.”
The template root directory is the one that we specify in templateLoaderPath:
property name="templateLoaderPath" value="classpath:/freemarker"
I tested this fix on Windows, Linux, Mach and its working everywhere.