-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inifinite recursion issue ... :( #1348
Comments
I'm sorry, but this isn't enough information to diagnose the problem.
If/when you isolate a passage which is causing difficulties, even an entire
document, let us know and we'll take a look.
…On Mon, Mar 13, 2023 at 4:29 PM alanlit ***@***.***> wrote:
Running 4.5.2 and the default English model 4.5.2. Every so often I get
the following stack-blowing recursion:
at
edu.stanford.nlp.parser.lexparser.TreeBinarizer.outsideBinarizeLocalTree(TreeBinarizer.java:479)
at
edu.stanford.nlp.parser.lexparser.TreeBinarizer.outsideBinarizeLocalTree(TreeBinarizer.java:479)
at
edu.stanford.nlp.parser.lexparser.TreeBinarizer.outsideBinarizeLocalTree(TreeBinarizer.java:479)
at
edu.stanford.nlp.parser.lexparser.TreeBinarizer.outsideBinarizeLocalTree(TreeBinarizer.java:479)
at
edu.stanford.nlp.parser.lexparser.TreeBinarizer.outsideBinarizeLocalTree(TreeBinarizer.java:479)
......
On either an NER pipe:
props.setProperty("annotators", "tokenize,ssplit,pos,lemma,ner")
props.setProperty("ner.statisticalOnly", "true")
props.setProperty("parse.model",
"edu/stanford/nlp/models/srparser/englishSR.ser.gz")
Or a sentiment pipe:
props.setProperty("parse.model",
"edu/stanford/nlp/models/srparser/englishSR.ser.gz")
props.setProperty("annotators", "tokenize,ssplit,pos,parse,sentiment")
Sorry I don't know which yet (or have a sample of the text that seems to
trigger it .. working on it).
Using openjdk 17.0.2.
Any thoughts as to what might be going on ?
Tnx
Alan
—
Reply to this email directly, view it on GitHub
<#1348>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA2AYWJ2GAT6G7LEWCEBDYDW36UW3ANCNFSM6AAAAAAVZXBQGU>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Quite understand - the problem is it can run for a day or so before blowing -- I'm still trying to isolate a test case, but in the meantime it decided to stack overflow via a different route. No idea if this gives you a clue or not: |
It certainly looks like an issue with a very deep parse tree, either because the parse was degenerate or because the text was very long and led to a huge parse tree. Are you giving it any text that is unrealistically long? |
Running 4.5.2 and the default English model 4.5.2. Every so often I get the following stack-blowing recursion:
at edu.stanford.nlp.parser.lexparser.TreeBinarizer.outsideBinarizeLocalTree(TreeBinarizer.java:479)
at edu.stanford.nlp.parser.lexparser.TreeBinarizer.outsideBinarizeLocalTree(TreeBinarizer.java:479)
at edu.stanford.nlp.parser.lexparser.TreeBinarizer.outsideBinarizeLocalTree(TreeBinarizer.java:479)
at edu.stanford.nlp.parser.lexparser.TreeBinarizer.outsideBinarizeLocalTree(TreeBinarizer.java:479)
at edu.stanford.nlp.parser.lexparser.TreeBinarizer.outsideBinarizeLocalTree(TreeBinarizer.java:479) ......
On either an NER pipe:
props.setProperty("annotators", "tokenize,ssplit,pos,lemma,ner")
props.setProperty("ner.statisticalOnly", "true")
props.setProperty("parse.model", "edu/stanford/nlp/models/srparser/englishSR.ser.gz")
Or a sentiment pipe:
props.setProperty("parse.model", "edu/stanford/nlp/models/srparser/englishSR.ser.gz")
props.setProperty("annotators", "tokenize,ssplit,pos,parse,sentiment")
Sorry I don't know which yet (or have a sample of the text that seems to trigger it .. working on it).
Using openjdk 17.0.2.
Any thoughts as to what might be going on ?
Tnx
Alan
The text was updated successfully, but these errors were encountered: