title: Stanford Parser out of memory
body: <p>I am trying to run Stanford parser in Ubuntu using python code. My text file is of 500 Mb which i am trying to parse.I have a RAM of 32GB. I am increasing the JVM size, but i don't whether it is actually increasing or not because every-time i am getting this error. Please help me out</p>
  
  <pre><code>WARNING!! OUT OF MEMORY! THERE WAS NOT ENOUGH  ***
  ***  MEMORY TO RUN ALL PARSERS.  EITHER GIVE THE    ***
  ***  JVM MORE MEMORY, SET THE MAXIMUM SENTENCE      ***
  ***  LENGTH WITH -maxLength, OR PERHAPS YOU ARE     ***
  ***  HAPPY TO HAVE THE PARSER FALL BACK TO USING    ***
  ***  A SIMPLER PARSER FOR VERY LONG SENTENCES.      ***
  Sentence has no parse using PCFG grammar (or no PCFG fallback).  Skipping...
  Exception in thread "main" edu.stanford.nlp.parser.common.NoSuchParseException
      at edu.stanford.nlp.parser.lexparser.LexicalizedParserQuery.getBestParse(LexicalizedParserQuery.java:398)
      at edu.stanford.nlp.parser.lexparser.LexicalizedParserQuery.getBestParse(LexicalizedParserQuery.java:370)
      at edu.stanford.nlp.parser.lexparser.ParseFiles.processResults(ParseFiles.java:271)
      at edu.stanford.nlp.parser.lexparser.ParseFiles.parseFiles(ParseFiles.java:215)
      at edu.stanford.nlp.parser.lexparser.ParseFiles.parseFiles(ParseFiles.java:74)
      at edu.stanford.nlp.parser.lexparser.LexicalizedParser.main(LexicalizedParser.java:1513)
  </code></pre>