Hi Rafa, yes, it should. For Spanish - add (or change to) "es". For further languages, please refer to:
http://stanbol.apache.org/docs/trunk/components/enhancer/engines/langidengine.html cheers, Iavor Am 03.12.2012 16:28, schrieb Rafa Haro: > Hi Iavor, > > thanks for your quick response. Until have it configurable, to get by > now, would it work just adding new languages to this parameter? > > Thanks. Regards > > El 03/12/12 15:58, Iavor Jelev escribió: >> Hi Rafa, >> >> you are correct, that's the cause. At the time we contributed it, we >> aggreed on english. The parameter can be found in [path to >> engines]/dbpspotlight/Constants.java >> >> The parameter is called SUPPORTED_LANGUAGES. >> >> I think it is time we make that configurable. >> >> best, >> Iavor >> >> Am 03.12.2012 14:37, schrieb Rafa Haro: >>> Hi again, >>> >>> In the post about DBpedia Spotlight and Apache Stanbol Integration by >>> Iavor Jelev [1] you can read exactly the following: >>> >>> */$chainURL/dbpspotlight/*/ >>> //This chain replicates the functionality of dbpspotlightannotate, by >>> chaining dbpspotlightspot and dbpspotlightdisambiguate. Please note that >>> langidis run first, and only english texts are processed. In the near >>> future, DBpedia Spotlight will support multiple languages and this >>> constraint will be adapted accordingly./ >>> >>> Is this maybe a hard-coded restriction? >>> >>> Regards >>> >>> [1] >>> http://blog.iks-project.eu/dbpedia-spotlight-integration-in-apache-stanbol-2/ >>> >>> >>> >>> El 03/12/12 09:39, Rafa Haro escribió: >>>> Hi Rupert, >>>> >>>> As always, thanks for your help. Inspecting the logs, part of the >>>> mystery has clarified. Basically, the problem is the language. I'm >>>> trying to test DBPedia Spotlight enhancer with Spanish texts. So, I >>>> did a request to the Stanbol Dev Server with a Spanish text and got >>>> the same result. Then I configured again my local Stanbol to work with >>>> a local installation of DBPedia Spotlight, try again with a Spanish >>>> text and this time I can read the following messages in the log file: >>>> / >>>> //[Thread-114] >>>> org.apache.stanbol.enhancer.engines.langdetect.LanguageDetectionEnhancementEngine >>>> >>>> language identified: [es:0.999996063192582]// >>>> //03.12.2012 08:52:55.386 *INFO* [Thread-116] >>>> org.apache.stanbol.enhancer.engines.dbpspotlight.utils.SpotlightEngineUtils >>>> >>>> DBpedia Spotlight can not process ContentItem >>>> <urn:content-item-sha1-4e1e021a361ceee0897f81f6e8d4b909072cd04e> >>>> because language es is not supported (supported: [en])/ >>>> >>>> So far, I haven't been able to find anything to change supported >>>> languages for the enhancer. I suppose that it should be possible to do >>>> that, am I wrong?? >>>> >>>> Thanks. Regards >>>> >>>> El 01/12/12 15:19, Rupert Westenthaler escribió: >>>>> On Fri, Nov 30, 2012 at 2:14 PM, Rafa Haro<rh...@zaizi.com> wrote: >>>>>> Hi all, >>>>>> >>>>>> I was trying to test the DBPedia Spotlight enhancer with a local >>>>>> installation of DBPedia Spotlight in an out-of-the-box Stanbol >>>>>> from the >>>>>> repository. So, I changed the URL of the service in >>>>>> dbpspotlightannotate >>>>>> engine to my point to my local service endpoint. When I tested it, >>>>>> the >>>>>> enhancement chain always stopped at language detection engine. I >>>>>> thought >>>>>> that maybe there was any error with my local installation, but then >>>>>> I tried >>>>>> again with the default URL endpoint >>>>>> (http://spotlight.dbpedia.org/rest/annotate) and got the same result. >>>>> I have never tried to change the configuration of the service URL so >>>>> this might be a Bug. Is your Spotlight service public accessible. If >>>>> so I could try to replicate this. If you do not want send the URL on a >>>>> public mailing list feel free to send it directly to me. >>>>> >>>>>> The >>>>>> only clue I have so far is the following message in the console >>>>>> where I run >>>>>> Stanbol: >>>>>> / >>>>>> //A servlet request, to the URI >>>>>> http://192.168.1.35:8080/enhancer/chain/dbpedia-spotlight, contains >>>>>> form >>>>>> parameters in the request body but the request body has been >>>>>> consumed by the >>>>>> servlet or a servlet filter accessing the request parameters. Only >>>>>> resource >>>>>> methods using @FormParam will work as expected. Resource methods >>>>>> consuming >>>>>> the request body by other means will not work as expected./ >>>>>> >>>>> This message is triggered by any Request to Stanbol when the >>>>> "httpqueryheaders" module is active. It can not be the cause for your >>>>> problem. >>>>> >>>>> Are there any loggings in the Stanbol log file? >>>>> What is the exact Chain configuration you are using? >>>>> >>>>> On the Stanbol Dev Server [1] (nightly build) it seams to work. >>>>> >>>>> best >>>>> Rupert >>>>> >>>>> [1]http://dev.iks-project.eu:8081/enhancer/chain/dbpedia-spotlight >>>>> >>>>>> Does anyone know what can be happening?? >>>>>> >>>>>> Regards >>>>>> >>>>>> This message should be regarded as confidential. If you have >>>>>> received this >>>>>> email in error please notify the sender and destroy it immediately. >>>>>> Statements of intent shall only become binding when confirmed in >>>>>> hard copy >>>>>> by an authorised signatory. >>>>>> >>>>>> Zaizi Ltd is registered in England and Wales with the registration >>>>>> number >>>>>> 6440931. The Registered Office is 222 Westbourne Studios, 242 Acklam >>>>>> Road, >>>>>> London W10 5JJ, UK. >>>>> -- >>>>> | Rupert westenthalerrupert.westentha...@gmail.com >>>>> | Bodenlehenstraße 11 ++43-699-11108907 >>>>> | A-5500 Bischofshofen >>> >>> This message should be regarded as confidential. If you have received >>> this email in error please notify the sender and destroy it immediately. >>> Statements of intent shall only become binding when confirmed in hard >>> copy by an authorised signatory. >>> >>> Zaizi Ltd is registered in England and Wales with the registration >>> number 6440931. The Registered Office is 222 Westbourne Studios, 242 >>> Acklam Road, London W10 5JJ, UK. >>> > > This message should be regarded as confidential. If you have received > this email in error please notify the sender and destroy it immediately. > Statements of intent shall only become binding when confirmed in hard > copy by an authorised signatory. > > Zaizi Ltd is registered in England and Wales with the registration > number 6440931. The Registered Office is 222 Westbourne Studios, 242 > Acklam Road, London W10 5JJ, UK. >