dbpedia / extraction-framework

The software used to extract structured data from Wikipedia
856 stars 269 forks source link

Error when running wiktionnary extractor #193

Closed ghost closed 10 years ago

ghost commented 10 years ago

Hi,

I tried to run the wiktionnary extractor and I have this error before the end of the process :

mars 18, 2014 3:39:41 PM org.dbpedia.extraction.mappings.Redirects$ loadFromSource
Infos: Redirects loaded from source (fr)
mars 18, 2014 3:39:41 PM org.dbpedia.extraction.mappings.Redirects$ load
Infos: 1626 redirects written to cache file /var/tmp/dumps/frwiktionary/20140314/frwiktionary-20140314-template-redirects.obj
mars 18, 2014 3:39:41 PM org.dbpedia.extraction.mappings.Disambiguations$ loadFromCache
Infos: Loading disambiguations from cache file /var/tmp/dumps/frwiktionary/20140314/frwiktionary-20140314-disambiguations-ids.obj
mars 18, 2014 3:39:41 PM org.dbpedia.extraction.mappings.Disambiguations$ load
Infos: Will extract disambiguations from source for fr wiki, could not load cache file '/var/tmp/dumps/frwiktionary/20140314/frwiktionary-20140314-disambiguations-ids.obj': java.io.FileNotFoundException: /var/tmp/dumps/frwiktionary/20140314/frwiktionary-20140314-disambiguations-ids.obj (Aucun fichier ou dossier de ce type)
mars 18, 2014 3:39:41 PM org.dbpedia.extraction.mappings.Disambiguations$ loadFromFile
Infos: Loading disambiguations from source (fr)
mars 18, 2014 3:39:42 PM org.dbpedia.extraction.dump.extract.ConfigLoader$$anon$1 liftedTree1$1
Infos: Could not load disambiguations - error: null
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at scala_maven_executions.MainHelper.runMain(MainHelper.java:164)
        at scala_maven_executions.MainWithArgsInFile.main(MainWithArgsInFile.java:26)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at org.dbpedia.extraction.mappings.CompositeParseExtractor$$anonfun$2.apply(CompositeParseExtractor.scala:73)
        at org.dbpedia.extraction.mappings.CompositeParseExtractor$$anonfun$2.apply(CompositeParseExtractor.scala:73)
        at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
        at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
        at scala.collection.immutable.List.foreach(List.scala:318)
        at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
        at scala.collection.AbstractTraversable.map(Traversable.scala:105)
        at org.dbpedia.extraction.mappings.CompositeParseExtractor$.load(CompositeParseExtractor.scala:73)
        at org.dbpedia.extraction.dump.extract.ConfigLoader.org$dbpedia$extraction$dump$extract$ConfigLoader$$createExtractionJob(ConfigLoader.scala:121)
        at org.dbpedia.extraction.dump.extract.ConfigLoader$$anonfun$getExtractionJobs$1.apply(ConfigLoader.scala:40)
        at org.dbpedia.extraction.dump.extract.ConfigLoader$$anonfun$getExtractionJobs$1.apply(ConfigLoader.scala:40)
        at scala.collection.GenTraversableViewLike$Mapped$$anonfun$foreach$2.apply(GenTraversableViewLike.scala:81)
        at scala.collection.Iterator$class.foreach(Iterator.scala:727)
        at scala.collection.immutable.RedBlackTree$TreeIterator.foreach(RedBlackTree.scala:422)
        at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
        at scala.collection.IterableLike$$anon$1.foreach(IterableLike.scala:294)
        at scala.collection.GenTraversableViewLike$Mapped$class.foreach(GenTraversableViewLike.scala:80)
        at scala.collection.IterableViewLike$$anon$3.foreach(IterableViewLike.scala:84)
        at org.dbpedia.extraction.dump.extract.Extraction$.main(Extraction.scala:30)
        at org.dbpedia.extraction.dump.extract.Extraction.main(Extraction.scala)
        ... 6 more
Caused by: java.lang.ExceptionInInitializerError
        at org.dbpedia.extraction.mappings.WiktionaryPageExtractor.<init>(WiktionaryPageExtractor.scala:57)
        ... 30 more
Caused by: java.io.FileNotFoundException: config/config.xml (Aucun fichier ou dossier de ce type)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:146)
        at java.io.FileInputStream.<init>(FileInputStream.java:101)
        at scala.xml.Source$.fromFile(XML.scala:21)
        at scala.xml.factory.XMLLoader$class.loadFile(XMLLoader.scala:49)
        at scala.xml.XML$.loadFile(XML.scala:57)
        at org.dbpedia.extraction.mappings.WiktionaryPageExtractor$.<init>(WiktionaryPageExtractor.scala:511)
        at org.dbpedia.extraction.mappings.WiktionaryPageExtractor$.<clinit>(WiktionaryPageExtractor.scala)
        ... 31 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:31.175s
[INFO] Finished at: Tue Mar 18 15:39:43 CET 2014
[INFO] Final Memory: 13M/965M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.1.6:run (default-cli) on project wiktionary: wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 240 (Exit value: 240) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Apparently the file config/config.xml doesn't exists. I lunched the process with mvn scala:run inside the wiktionary folder.

Did-I do something wrong ?

Best.

Julien.

ghost commented 10 years ago

I think I found the problem, I had to download all the config files from the dbpedia-wiktionary-configuration repository.