kermitt2 / grobid-example Goto Github PK
View Code? Open in Web Editor NEWSome examples of usage of Grobid in a third party java project.
Some examples of usage of Grobid in a third party java project.
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)
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
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>
-->
Hi, it looks like bintray repository has been discontinued, is there any other place we could get grobid as a maven dependency?
Best regards
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.
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: 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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.