It takes some time to start up, what do you see in the shell as you start
the server?

Can you try adding &spotter=Default&disambiguator=Default to the URL? They
might not be the default, I have to check that in the code.

You can also check out the demo from here:
https://github.com/jodaiber/demo/(index.html)

Best,
Jo


On Wed, Mar 13, 2013 at 6:00 PM, Tom De Caluwé <[email protected]> wrote:

> I forgot the URL+port. After I added those I got this exception:
>
> Exception in thread "main" java.io.FileNotFoundException:
> /opt/dbpedia-spotlight/var/spotlight/data/spotter_thresholds.txt (Bestand
> of map bestaat niet)
>
> So I copied opennlp_chunker_thresholds.txt to spotter_thresholds.txt. Is
> this right? After that the server would start (after adding a trailing
> slash to the URI, mind you) but when I tried to use it like this:
>
>
> http://localhost:2222/rest/annotate?text=Het%20pion%20is%20een%20subatomair%20deeltje,%20meer%20bepaald%20een%20hadron,%20nog%20meer%20bepaald%20een%20meson.%20Het%20bestaat%20uit%20twee%20quarks%20en%20is%20dus%20een%20boson
> .
>
> All I got was a blank page. Any thoughts?
>
>
> 2013/3/13 Joachim Daiber <[email protected]>
>
>> Did you run it with these two parameters?
>>
>> /path/to/extraced/model_nl http://localhost:2222
>>
>> The first is the model folder, the second is the URL+port. The error you
>> see is that it does not find the second parameter.
>>
>> Best,
>> Joachim
>>
>>
>> On Wed, Mar 13, 2013 at 5:44 PM, Tom De Caluwé <[email protected]>wrote:
>>
>>> I built dbpedia-spotlight as you indicated with "mvn package" but
>>> whenever I run it, I get the following error:
>>>
>>> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
>>>     at org.dbpedia.spotlight.web.rest.Server.main(Server.java:111)
>>>
>>>
>>> 2013/3/13 Joachim Daiber <[email protected]>
>>>
>>>> Hey Tom,
>>>>
>>>> yeah, sorry, this will get easier once we have everything sorted for
>>>> the release.
>>>>
>>>> The model is fully built, so you do not need to perform the actions in
>>>> the guide at
>>>>
>>>>
>>>> https://github.com/dbpedia-spotlight/dbpedia-spotlight/wiki/Internationalization-(DB-backed-core)
>>>>
>>>> Just download the model and extract it.
>>>>
>>>> Then, check out DBpedia Spotlight and build it:
>>>>
>>>> git clone https://github.com/dbpedia-spotlight/dbpedia-spotlight.git
>>>> cd dbpedia-spotlight/dist
>>>> mvn package
>>>>
>>>> This will create the file
>>>> dbpedia-spotlight-0.6-jar-with-dependencies.jar in the folder dist/target.
>>>> Copy that file to a good place and then run the model with
>>>>
>>>> java -Xmx4G -jar dbpedia-spotlight-0.6-jar-with-dependencies.jar  
>>>> /path/to/extraced/model_nl
>>>>
>>>> http://localhost:2222
>>>>
>>>> This will start a Dutch Spotlight endpoint at port 2222.
>>>>
>>>>
>>>> Best,
>>>> Joachim
>>>>
>>>>   Pablo N. Mendes <[email protected]>
>>>>  13. März 2013 16:36
>>>>
>>>> Hi Tom,
>>>> Things are a bit confusing for everybody because we are in the middle
>>>> of a large merge, and preparing a new release. We hope that we will be able
>>>> to clear up things during the coming weeks.
>>>>
>>>> Meanwhile, you can follow the instructions that Jo shared. This is the
>>>> guide for generating the model that he shared in his last e-mail:
>>>>
>>>> https://github.com/dbpedia-spotlight/dbpedia-spotlight/wiki/Internationalization-(DB-backed-core)
>>>>
>>>> Cheers,
>>>> Pablo
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Pablo N. Mendes
>>>> http://pablomendes.com
>>>>    Tom De Caluwé <[email protected]>
>>>>  13. März 2013 16:13
>>>> How do I use this model? I'm a bit lost in all this... I'm not even
>>>> sure which guide to follow.
>>>>
>>>>
>>>>   Joachim Daiber <[email protected]>
>>>>  13. März 2013 15:45
>>>>  Hey Tom,
>>>>
>>>> there is a pre-built Dutch model you can download from here:
>>>>
>>>> http://spotlight.sztaki.hu:2226/nl.tar.gz
>>>>
>>>> You can run this model via:
>>>>  $ java -jar dbpedia-spotlight.jar /path/to/extraced/model_nl
>>>> http://localhost:2222
>>>>
>>>> Best,
>>>> Joachim
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Everyone hates slow websites. So do we.
>>>> Make your web apps faster with AppDynamics
>>>> Download AppDynamics Lite for free today:
>>>> http://p.sf.net/sfu/appdyn_d2d_mar
>>>> _______________________________________________
>>>> Dbp-spotlight-users mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users
>>>>   Tom De Caluwé <[email protected]>
>>>>  13. März 2013 15:37
>>>> I'm trying to install DBPedia Spotlight by following the
>>>> internationalization guide here:
>>>>
>>>> https://github.com/dbpedia-spotlight/dbpedia-spotlight/wiki/Internationalization-%28Lucene-backed-core%29
>>>> ,
>>>> however after running the index.sh file, the output files don't look
>>>> anything like the example in the guide. All .tsv files are empty, and
>>>> some files seem to be missing (like occs.tsv). How can I succesfully
>>>> complete the installation?
>>>>
>>>> A screenshot of the directory structure after running index.sh can be
>>>> found here:
>>>> https://docs.google.com/file/d/0B7DwckEYglPtMnAwVXpKT0RZZ1E/edit?usp=sharing
>>>> The configuration file I used:
>>>>
>>>> https://docs.google.com/file/d/0B7DwckEYglPtNHE0Q2ZkXzVMUEk/edit?usp=sharing
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Everyone hates slow websites. So do we.
>>>> Make your web apps faster with AppDynamics
>>>> Download AppDynamics Lite for free today:
>>>> http://p.sf.net/sfu/appdyn_d2d_mar
>>>> _______________________________________________
>>>> Dbp-spotlight-users mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users
>>>>
>>>>
>>>
>>
>

<<compose-unknown-contact.jpg>>

<<postbox-contact.jpg>>

<<postbox-contact.jpg>>

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Dbp-spotlight-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users

Reply via email to