JWPL
JWPL Bug:
Bug:org.xml.sax.saxparseexception JAXP00010004
JWPL Debug:
Copy this code in App.java
package maven.maven;
import javax.xml.XMLConstants;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParserFactory;
import org.xml.sax.SAXNotRecognizedException;
import org.xml.sax.SAXNotSupportedException;
import de.tudarmstadt.ukp.wikipedia.datamachine.domain.JWPLDataMachine;
public class App
{
public static void main( String[] args ) throws SAXNotRecognizedException, SAXNotSupportedException, ParserConfigurationException
{
System.setProperty("jdk.xml.totalEntitySizeLimit", "500000000");
SAXParserFactory spf = SAXParserFactory.newInstance();
spf.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, false);
// Path where wiki dump is stored.
String[] arg = {"french", "Accueil", "Homonymie", "/home/qcrialt/ATQAM/WikipediaDumps/frwiki-20170920"};
JWPLDataMachine.main(arg);
// french Accueil Homonymie
// /home/qcrialt/ATQAM/WikipediaDumps/frwiki-20170920
}
}
Add this dependency in pom.xml
https://dkpro.github.io/dkpro-jwpl/DeveloperSetup/
Comments
Post a Comment