dbpedia-spotlight / dbpedia-spotlight-model

DBpedia Spotlight is a tool for automatically annotating mentions of DBpedia resources in text. Improving Efficiency and Accuracy in Multilingual Entity Extraction approach
http://www.dbpedia-spotlight.org
Apache License 2.0
178 stars 43 forks source link

Not working in Java 9 or 10 #28

Open jaysonfeliciano opened 6 years ago

jaysonfeliciano commented 6 years ago

Hi,

We are forced to update our java to 10. But after upgrading to java 10, dbpedia spotlight is no longer working. We are getting this error: "ava.lang.TypeNotPresentException: Type javax.xml.bind.JAXBContext not present".

Do you have any suggestions to resolve this?

Thanks, Jayson

jaysonfeliciano commented 6 years ago

here is the exact command where we are encountering the error with java 10

curl http://localhost:1443/rest/annotate \ -H "Accept: text/xml" \ --data-urlencode "text=Brazilian state-run giant oil company Petrobras signed a three-year technology and research cooperation agreement with oil service provider Halliburton." \ --data "confidence=0" \ --data "support=0"

mgns commented 6 years ago

The problem was discussed for Java 9 here.

I would recommend to use a docker image of spotlight, generally and here as a workaround.

Would consider this issue an enhancement.

jaysonfeliciano commented 6 years ago

Hi Magnus,

Thank you for your response. Unfortunately, we are not allowed to use the docker image and we're pushed with the workaround.

Regarding workaround, do you have a very simple step for us to re-compile the dbpedia? Many thanks in advance!

As for the enhancement, would you be able to provide timeline?

Thank you very much! Jayson

jaysonfeliciano commented 6 years ago

Hi Magnus/Any support,

Java will end their support in Java 10 and there are vulnerabilities found with this lower version. Just wanted to know where are you at on the enhancement that supports Java 11?

Regards, Jayson

sandroacoelho commented 6 years ago

Hi @jaysonfeliciano

We can start a project to migrate it Java 11. What about to help me with it? Please ping me if you are in.

Best,

jaysonfeliciano commented 6 years ago

Hi Sandro,

Wow, great idea! But unfortunately, we are not familiar with it as well as the Java language. We are just plainly consuming DBPedia Spotlight for our NLP engine. Are you part of the support?

Thanks, Jayson

rovicsellado commented 6 years ago

Hi, I have the same issue on this thread, DBPedia Spotlight is not Working in Java 11. Is there a commercial support that can help us on this? Or on call support we can reach out to?

Thanks in advance. Rovic

sandroacoelho commented 5 years ago

Hi @jaysonfeliciano , @rovicsellado

I am commiter in the repo. Unfortunately, we are short on workforce and infrastructure for maintaining the Spotlight service online and up to date.

What about to start a crowdfunding campaign to upgrade DBpedia Spotlight to Java 11 and deliver new models? All raised money will be applied to rent cloud servers to keep it running for one year.

Please, consider supporting it, especially if you use our solution for commercial purpose.

All the best,

rovicsellado commented 5 years ago

Hi Sandro,

Thanks for the proposal, we'll consider this. One question though, what do we mean when we say "to rent cloud servers to keep it running for one year"? Are we going to put the new version of DBPedia Spotlight on the cloud and comsumers will just connect it from there? If so, I think it won't work for us. We need a distributable version of the DBPedia Spotlight that can be installed on our own servers.

Thanks, Rovic

sandroacoelho commented 5 years ago

Hi @rovicsellado,

As always, we intend to continue delivery releases in jar and docker through Docker hub.

Beside it, we rent servers to compile new models and made available live endpoints that are used by the community under our demo site

All the best,

rovicsellado commented 5 years ago

Hi Sandro,

Thanks for providing the info. By the way if we help in migrating the project to Java 11, how long would the upgrade be and the complexity? What skills are needed?

Thanks in advance. Rovic

sandroacoelho commented 5 years ago

Hi @rovicsellado,

I was thinking about how to have it quickly. DBpedia Spotlight has 3 modules (core, index and rest). Upgrade them in one shot would be no so easy mainly because of Scala library incompatibilities. We can split it into two services: indexing service and REST/query service.

The good news is: REST endpoints are almost done here (it is pending unit/integration tests and swagger). It uses Spring boot. So, the work would be move/reimplement the codebase that read/query the language models.

What skills are needed?

Best,

rovicsellado commented 5 years ago

Hi Sandro,

In terms of skills you mentioned, we just have limited coding experience in terms of Java and 0 experience on the rest. Not sure how or where we could contribute on this area. Do you have any timeframe we could start the effort and ETC on how long do you think we can do this?

Thanks. Rovic

rovicsellado commented 5 years ago

Hello @sandroacoelho,

Good day! Any news about this initiative?

Thanks. Bic