dbpedia-spotlight/model-quickstarter

Issues creating/hosting Greek (el) model

lhausmann opened this issue · 0 comments

Hey,

I'm trying to build a spotlight model for greek an am running into some issues.
After experiencing the "NoneStemmer" Issue reported by others and removing the "Stemmer" at line216 inmodel-quickstarter/index.db.sh creating the model worked.
Hosting the model also worked.
But when I send any data to the /annotate endpoint get this error message:

java.lang.NullPointerExceptionnullorg.dbpedia.spotlight.db.tokenize.BaseTextTokenizer.getStemmedTokenType(BaseTextTokenizer.scala:16)
org.dbpedia.spotlight.db.tokenize.LanguageIndependentTokenizer$$anonfun$tokenize$1$$anonfun$apply$1.apply(LanguageIndependentTokenizer.scala:41)
org.dbpedia.spotlight.db.tokenize.LanguageIndependentTokenizer$$anonfun$tokenize$1$$anonfun$apply$1.apply(LanguageIndependentTokenizer.scala:37)
scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
scala.collection.immutable.Range.foreach(Range.scala:141)
scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
scala.collection.AbstractTraversable.map(Traversable.scala:105)
org.dbpedia.spotlight.db.tokenize.LanguageIndependentTokenizer$$anonfun$tokenize$1.apply(LanguageIndependentTokenizer.scala:37)
org.dbpedia.spotlight.db.tokenize.LanguageIndependentTokenizer$$anonfun$tokenize$1.apply(LanguageIndependentTokenizer.scala:30)
scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:108)
scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
scala.collection.mutable.ArrayOps$ofRef.map(ArrayOps.scala:108)
org.dbpedia.spotlight.db.tokenize.LanguageIndependentTokenizer.tokenize(LanguageIndependentTokenizer.scala:30)
org.dbpedia.spotlight.db.tokenize.BaseTextTokenizer.tokenizeMaybe(BaseTextTokenizer.scala:13)
org.dbpedia.spotlight.web.rest.SpotlightInterface.spot(SpotlightInterface.java:120)
org.dbpedia.spotlight.web.rest.SpotlightInterface.getOccurrences(SpotlightInterface.java:155)
org.dbpedia.spotlight.web.rest.SpotlightInterface.getXML(SpotlightInterface.java:249)
org.dbpedia.spotlight.web.rest.resources.Annotate.getXML(Annotate.java:118)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)
javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
com.sun.grizzly.http.servlet.ServletAdapter$FilterChainImpl.doFilter(ServletAdapter.java:1059)
com.sun.grizzly.http.servlet.ServletAdapter$FilterChainImpl.invokeFilterChain(ServletAdapter.java:999)
com.sun.grizzly.http.servlet.ServletAdapter.doService(ServletAdapter.java:434)
com.sun.grizzly.http.servlet.ServletAdapter.service(ServletAdapter.java:379)
com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
com.sun.grizzly.ContextTask.run(ContextTask.java:71)
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
java.lang.Thread.run(Thread.java:748)

Any idea what's going on here?