source: gs2-extensions/ngramj/src/wiki/wikipedia2text/wiki2xml/php/sample_local.php@ 25141

Last change on this file since 25141 was 25141, checked in by papitha, 12 years ago

NGRAMJ PERL MODULE ADDED /MAORI LANGUAGE GUESSING WORKING WELL!!

File size: 1.9 KB
Line 
1<?php
2
3/**
4 * You can create your own local.php file, similar to this one, to configure
5 * your local installation.
6 * If you do not create a local.php file, the scripts will run with
7 * default settings.
8 */
9
10$xmlg["site_base_url"] = "127.0.0.1/phase3" ;
11$xmlg["use_special_export"] = 1 ;
12
13# Directory for temporary files:
14$xmlg["temp_dir"] = "C:/windows/temp" ;
15
16$xmlg["docbook"] = array (
17 "command_pdf" => "C:/docbook/bat/docbook_pdf.bat %1" ,
18 "command_html" => "C:/docbook/bat/docbook_html.bat %1" ,
19 "temp_dir" => "C:/docbook/repository" ,
20 "out_dir" => "C:/docbook/output" ,
21 "dtd" => "file:/c:/docbook/dtd/docbookx.dtd"
22) ;
23
24/* To allow parameters passed as URL parameter ($_GET), set
25$xmlg['allow_get'] = true ;
26
27Parameters:
28doit=1
29text=lines_of_text_or_titles
30whatsthis=wikitext/articlelist
31site=en.wikipedia.org/w
32output_format=xml/text/xhtml/docbook_xml/odt_xml/odt
33
34Optional:
35use_templates=all/none/these/notthese
36templates=lines_of_templates
37document_title=
38add_gfdl=1
39keep_categories=1
40keep_interlanguage=1
41*/
42
43
44
45# To use the toolserver text access, set
46# $xmlg["use_toolserver_url"] = true ;
47# $xmlg["use_special_export"] = false ;
48
49# On Windows, set
50# $xmlg['is_windows'] = true ;
51
52### Uncomment the following to use Special:Export and (potentially) automatic
53### authors list; a little slower, though:
54#$xmlg["use_special_export"] = 1 ;
55
56
57### Uncomment and localize the following to offer ODT export
58
59# Path to the zip/unzip programs; can be omitted if in path:
60#$xmlg["zip_odt_path"] = "E:\\Program Files\\7-Zip" ;
61
62# Command to zip directory $1 to file $2;
63# NOTE THE '*' AFTER '$2' FOR WINDOWS ONLY!
64#$xmlg["zip_odt"] = '7z.exe a -r -tzip $1 $2*' ;
65
66# Command to unzip file $1 to directory $2:
67#$xmlg["unzip_odt"] = '7z.exe x $1 -o$2' ;
68
69
70# If you want to do text-file browsing, run "xmldump2files.php" once
71# (see settings there), then set this:
72# $base_text_dir = "C:/dewiki-20060327-pages-articles" ;
73
74?>
Note: See TracBrowser for help on using the repository browser.