How to use WordNet in GAE

1 view
Skip to first unread message

user2481513 via StackOverflow

unread,
Feb 2, 2016, 4:30:04 AM2/2/16
to google-appengin...@googlegroups.com

I am trying to use WordNet in GAE but I am getting the error mentioned below. I am able to access the WordNet after specifying the directory with the help of appengine properties. Not sure if GAE allows the kind of reading WordNet does to read its files. The whole exception trace is there where the last line is my function calling WordNet synset API. The program works fine when executed locally on my machine as web application. So there is nothing wrong with my logic. The problem only occurs when I try to deploy the code to the GAE. At the moment I am trying to access the synsets API made available by WordNet jar.

com.google.apphosting.api.DeadlineExceededException: This request (68486dfc867c528f) started at 2015/03/13 06:49:06.494 UTC and was still executing at 2015/03/13 06:50:06.280 UTC.
    at java.io.RandomAccessFile.read0(Native Method)
    at java.io.RandomAccessFile.read(RandomAccessFile.java:348)
    at edu.smu.tspell.wordnet.impl.RandomAccessReader.readNextCharacter(RandomAccessReader.java:139)
    at edu.smu.tspell.wordnet.impl.RandomAccessReader.readToNextEndOfLine(RandomAccessReader.java:114)
    at edu.smu.tspell.wordnet.impl.LineLocator.getLine(LineLocator.java:115)
    at edu.smu.tspell.wordnet.impl.MultipleLineLocator.getLines(MultipleLineLocator.java:93)
    at edu.smu.tspell.wordnet.impl.MultipleLineLocator.getLines(MultipleLineLocator.java:71)
    at edu.smu.tspell.wordnet.impl.file.SenseIndexReader.getAllEntries(SenseIndexReader.java:171)
    at edu.smu.tspell.wordnet.impl.file.SenseIndexReader.getLemmaEntries(SenseIndexReader.java:150)
    at edu.smu.tspell.wordnet.impl.file.WordFormLookup.loadSynsets(WordFormLookup.java:274)
    at edu.smu.tspell.wordnet.impl.file.WordFormLookup.getSynsets(WordFormLookup.java:230)
    at edu.smu.tspell.wordnet.impl.file.WordFormLookup.getSynsets(WordFormLookup.java:172)
    at edu.smu.tspell.wordnet.impl.file.FileDatabase.getSynsets(FileDatabase.java:87)
    at edu.smu.tspell.wordnet.WordNetDatabase.getSynsets(WordNetDatabase.java:81)
    at com.clusterReviews.myFile.myFunction(myFile.java:346)


Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/29026627/how-to-use-wordnet-in-gae
Reply all
Reply to author
Forward
0 new messages