Giter Club home page Giter Club logo

grobid-example's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

grobid-example's Issues

java.lang.IllegalAccessError

I get the following error when I try to run the example.

Exception in thread "main" java.lang.IllegalAccessError: tried to access field com.cybozu.labs.langdetect.util.LangProfile.name from class com.cybozu.labs.langdetect.DetectorFactory
at com.cybozu.labs.langdetect.DetectorFactory.addProfile(DetectorFactory.java:123)
at com.cybozu.labs.langdetect.DetectorFactory.loadProfile(DetectorFactory.java:78)
at org.grobid.core.lang.impl.CybozuLanguageDetectorFactory.init(CybozuLanguageDetectorFactory.java:31)
at org.grobid.core.lang.impl.CybozuLanguageDetectorFactory.getNewInstance(CybozuLanguageDetectorFactory.java:50)
at org.grobid.core.lang.impl.CybozuLanguageDetectorFactory.getInstance(CybozuLanguageDetectorFactory.java:40)
at org.grobid.core.utilities.LanguageUtilities.runLanguageId(LanguageUtilities.java:82)
at org.grobid.core.engines.HeaderParser.processingHeaderBlock(HeaderParser.java:145)
at org.grobid.core.engines.HeaderParser.processing2(HeaderParser.java:104)
at org.grobid.core.engines.Engine.processHeader(Engine.java:438)
at org.grobid.core.engines.Engine.processHeader(Engine.java:415)

PDF to XML conversion failed on pdf file .\src\test\resources\Wang_paperAVE2008.pdf

Hi,

I just downloaded and compiled grobid-example, and everything looks fine.
I am using Windows 10 and Java 11.

But when I run the tests I get the folowing error:

org.grobid.core.exceptions.GrobidException: [PDFALTO_CONVERSION_FAILURE] PDF to XML conversion failed on pdf file .\src\test\resources\Wang_paperAVE2008.pdf
        at org.grobid.core.document.DocumentSource.processPdfaltoThreadMode(DocumentSource.java:209)
        at org.grobid.core.document.DocumentSource.pdfalto(DocumentSource.java:155)
        at org.grobid.core.document.DocumentSource.fromPdf(DocumentSource.java:64)
        at org.grobid.core.document.DocumentSource.fromPdf(DocumentSource.java:50)

The file "Wang_paperAVE2008.pdf" exists.
Just to be sure the code was looking for correct file I changed the file name in TEST code and got the "File not found error", so it's really looking in the right place.

I also changed to another PDF file, but the error is the same.

Any idea what could be the error ?

Thanks

Failure to find com.cybozu:language-detection:jar:09-13-2011

At "mvn install" the following error is displayed:

[ERROR] Failed to execute goal on project org.grobidExample: Could not resolve dependencies for project grobid-example:org.grobidExample:jar:0.0.2: Failure to find com.cybozu:language-detection:jar:09-13-2011 in file:///

Solution: replace as below in /root/grobid/grobid-example/pom.xml

<dependency>
   <groupId>com.cybozu.labs</groupId>
   <artifactId>langdetect</artifactId>
   <version>1.1-20120112</version>
</dependency>

<!--  <dependency>
  <groupId>com.cybozu</groupId>
  <artifactId>language-detection</artifactId>
  <version>09-13-2011</version>
</dependency>
-->

Bintray is no longer accessible

Hi, it looks like bintray repository has been discontinued, is there any other place we could get grobid as a maven dependency?

Best regards

What‘s the use of wipo

Hi,
I find there's a document org/wipo in the lib and I don't find where it is used. Actually I can run grobid as
a java library well without this document. Could you tell me what this part used to do?
Thank you.

Missing dependencies on Maven

I'm trying to use Grobid as a Java library much in the same way that this repo does, and it seems that at least 2 of the dependencies are no longer available through maven. What should be done about this?

Note: I am very much a beginner with Maven projects.

[WARNING] The POM for fr.limsi.wapiti:wapiti:jar:1.5.0 is missing, no dependency information available
[WARNING] The POM for org.wipo.analysers:wipo-analysers:jar:0.0.1 is missing, no dependency information available

javax.naming.NoInitialContextException

javax.naming.NoInitialContextException: Cannot instantiate class: org.apache.naming.java.javaURLContextFactory [Root exception is java.lang.ClassNotFoundException: org.apache.naming.java.javaURLContextFactory]

I saw kermitt2/grobid#91 but putting all dependencies in didn't work.
Any ideas? I've tried all java naming dependencies I can find in maven central.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.