Hi Bernhard,
I can think of two things:
- did you make sure that the file spotter.dict is there and is not empty?
- does your input text contain at least one phrase that is also in the dict?

This sounds like somebody (probably myself) was overconfident in using
List.head instead of List.headOption somewhere, and an empty list is
breaking the flow.

Are you using trunk or v0.5? Also, from where did you get the spotter.dict?

Cheers
Pablo
On Apr 24, 2012 9:20 PM, "Bernhard Haslhofer" <
[email protected]> wrote:

> Hi,
>
> I currently try to setup DBPedia spotlight on an ubuntu machine with
> OpenJDK java version "1.6.0_23" running on it.
>
> It can run it but whenever the server receives a request it throws some
> scala-related exception. It seems that it
> has troubles reading the spotter.dict file, but given my lack of scala
> knowledge I have troubles deciphering the following
> exception:
>
> DEBUG 2012-04-24 21:04:41,748 http2222-WorkerThread(2) [LingPipeSpotter] -
> Spotting with dictionary: /home/maphub/db_spotlight/spotter.dict.
> java.util.NoSuchElementException: head of empty list
> at scala.collection.immutable.Nil$.head(List.scala:371)
> at scala.collection.immutable.Nil$.head(List.scala:368)
> at org.dbpedia.spotlight.model.Factory$Paragraph$.from(Factory.scala:140)
> at org.dbpedia.spotlight.model.Factory$Paragraph$.fromJ(Factory.scala:137)
> at
> org.dbpedia.spotlight.web.rest.SpotlightInterface.process(SpotlightInterface.java:57)
>
>
>
> Do you have an idea what is going wrong?
>
> Thanks a lot,
>
> Bernhard
>
>
> -----------------------------------------------------
> Bernhard Haslhofer
> Postdoc Associate
> Cornell Information Science
> 301 College Ave.
> Ithaca, NY 14850
> WWW: http://www.cs.cornell.edu/~bh392/
> Skype: bernhard.haslhofer
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Dbp-spotlight-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dbp-spotlight-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users

Reply via email to