Esempio n. 1
0
 public function test2()
 {
     echo 'hello';
     include '..\\..\\ybourque\\WikParser\\Wikparser.php';
     $wik = new WikParser();
     $queries = ['def', 'pos', 'syn', 'hyper', 'gender'];
     $parsed = $wik->getWordDefiniton('bon', $queries, 'fr');
     var_dump($parsed);
 }
Esempio n. 2
0
 public function test2()
 {
     include '.\\lib\\WikiExtract.php';
     $languageParams = array();
     $languageParams['langCode'] = 'en';
     $languageParams['langHeader'] = '===';
     $languageParams['langSeparator'] = '=';
     $wikExtr = new WikiExtract($languageParams, 'local');
     $parsed = $wikExtr->sqlFetchData('bon');
     var_dump($parsed);
     include 'Wikparser.php';
     $wik = new WikParser();
     $queries = ['def'];
     $parsed = $wik->getWordDefiniton('bon', $queries, 'fr');
     //$parsed = $wik->parseQuery('def',$parsed);
     var_dump($parsed);
 }