Hi all,

There seems to be a new language in Wikipedia, with the language code
'tyv', and this creates a problem when I run "generate-settings" (see blue
error message below).

Does anyone know how to deal with it?

Thanks in advance,
Omri





../run generate-settings

[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building DBpedia Core Libraries
[INFO]    task-segment: [scala:run]
[INFO]
------------------------------------------------------------------------
[INFO] Preparing scala:run
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/opt/doat/indexer_i18n/dbpedia_git/core/src/main/resources
[INFO] [scala:compile {execution: process-resources}]
[INFO] Checking for multiple versions of scala
[INFO] includes = [**/*.scala,**/*.java,]
[INFO] excludes = []
[INFO] Nothing to compile - all classes are up to date
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [scala:compile {execution: compile}]
[INFO] Checking for multiple versions of scala
[INFO] includes = [**/*.scala,**/*.java,]
[INFO] excludes = []
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 24 resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [scala:testCompile {execution: test-compile}]
[INFO] Checking for multiple versions of scala
[INFO] includes = [**/*.scala,**/*.java,]
[INFO] excludes = []
[INFO] Nothing to compile - all classes are up to date
[INFO] [scala:run {execution: default-cli}]
[INFO] Checking for multiple versions of scala
[INFO] launcher 'generate-settings' selected =>
org.dbpedia.extraction.wikiparser.impl.wikipedia.GenerateWikiSettings
generating wiki config for 298 languages
mappings - OK
commons - OK
wikidata - OK
aa - OK
ab - OK
ace - OK

[...]

tt - OK
tum - OK
tw - OK
ty - OK
tyvjava.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:601)
        at
org_scala_tools_maven_executions.MainHelper.runMain(MainHelper.java:161)
        at
org_scala_tools_maven_executions.MainWithArgsInFile.main(MainWithArgsInFile.java:26)
Caused by: java.lang.IllegalArgumentException: *unknown language code tyv*
        at
org.dbpedia.extraction.util.Language$$anonfun$apply$1.apply(Language.scala:258)
        at
org.dbpedia.extraction.util.Language$$anonfun$apply$1.apply(Language.scala:258)
        at scala.collection.MapLike$class.getOrElse(MapLike.scala:122)
        at scala.collection.immutable.HashMap.getOrElse(HashMap.scala:38)
        at org.dbpedia.extraction.util.Language$.apply(Language.scala:258)
        at
org.dbpedia.extraction.wikiparser.impl.wikipedia.GenerateWikiSettings$$anonfun$main$2.apply(GenerateWikiSettings.scala:73)
        at
org.dbpedia.extraction.wikiparser.impl.wikipedia.GenerateWikiSettings$$anonfun$main$2.apply(GenerateWikiSettings.scala:70)
        at
scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
        at scala.collection.immutable.List.foreach(List.scala:76)
        at
org.dbpedia.extraction.wikiparser.impl.wikipedia.GenerateWikiSettings$.main(GenerateWikiSettings.scala:70)
        at
org.dbpedia.extraction.wikiparser.impl.wikipedia.GenerateWikiSettings.main(GenerateWikiSettings.scala)
        ... 6 more
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] wrap: org.apache.commons.exec.ExecuteException: Process exited with
an error: 240(Exit value: 240)

[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3 minutes 11 seconds
[INFO] Finished at: Thu Aug 29 07:57:34 PDT 2013
[INFO] Final Memory: 25M/607M
[INFO]
------------------------------------------------------------------------
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Dbpedia-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-developers

Reply via email to