On 10 December 2013 12:52, Hady elsahar <[email protected]> wrote: > Hi Dimitris , > > yeat got that > but is there a reason for such change ? (adding dot before Extractor name in > config file ?)
This allows one to use extractors in other packages. It was necessary for .fr.PopulationExtractor [1] which is specific for the French extraction. We didn't wnat to put it into the main package but also didn't want to have to use the full package name. JC [1] https://github.com/dbpedia/extraction-framework/blob/master/core/src/main/scala/org/dbpedia/extraction/mappings/fr/PopulationExtractor.scala > > > > > On Tue, Dec 10, 2013 at 7:30 AM, Dimitris Kontokostas > <[email protected]> wrote: >> >> Hi Hady, >> >> This is not a bug, JC changed the configuration files a bit. Look at any >> default extraction property file and you will get it >> >> cheers, >> Dimitris >> >> >> On Tue, Dec 10, 2013 at 2:51 AM, Hady elsahar <[email protected]> >> wrote: >>> >>> Hi All , >>> >>> in previous versions [1] of the file Config.scala in the line 147 used to >>> be like this >>> >>> val className = if (! name.contains(".")) >>> classOf[Extractor].getPackage.getName+'.'+name else name >>> >>> >>> >>> which is logic because if you write "LabelExtractor" as Extractor in >>> config file , it will concatenate to it "org.dbpedia.extraction.mappings." >>> and loads it >>> >>> >>> >>> >>> but after Dimitris and Andreas merged the main and the Dumb branch , it's >>> found to be like this[2] , this didn't work correctly , it always raises >>> class not found exception : >>> >>> >>> >>> val className = if (name.startsWith(".")) >>> classOf[Extractor].getPackage.getName+name else name >>> >>> >>> >>> >>> >>> >>> >>> when i changed it back to the first version it worked correctly , so i >>> wonder about that ? >>> >>> >>> >>> >>> 1- >>> https://github.com/hadyelsahar/extraction-framework/blob/e26ef813dad098d573be34191dfaef13c78b5986/dump/src/main/scala/org/dbpedia/extraction/dump/extract/Config.scala >>> >>> >>> 2- >>> https://github.com/hadyelsahar/extraction-framework/blob/990bc1576007172361e05d3ccec1d53d666bf258/dump/src/main/scala/org/dbpedia/extraction/dump/extract/Config.scala >>> >>> >>> Thanks >>> Regards >>> ------------------------------------------------- >>> Hady El-Sahar >>> Research Assistant >>> Center of Informatics Sciences | Nile University >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Sponsored by Intel(R) XDK >>> Develop, test and display web and hybrid apps with a single code base. >>> Download it for free now! >>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Dbpedia-developers mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/dbpedia-developers >>> >> >> >> >> -- >> Dimitris Kontokostas >> Department of Computer Science, University of Leipzig >> Research Group: http://aksw.org >> Homepage:http://aksw.org/DimitrisKontokostas > > > > > -- > ------------------------------------------------- > Hady El-Sahar > Research Assistant > Center of Informatics Sciences | Nile University > > > > ------------------------------------------------------------------------------ > Sponsored by Intel(R) XDK > Develop, test and display web and hybrid apps with a single code base. > Download it for free now! > http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk > _______________________________________________ > Dbpedia-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/dbpedia-developers > ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Dbpedia-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dbpedia-developers
