~domy/corpusfiltergraph/old-main

« back to all changes in this revision

Viewing changes to trunk/lib/corpusfg/demo-1.bat

  • Committer: tahoar
  • Date: 2012-10-26 14:59:20 UTC
  • Revision ID: svn-v4:bc069b21-dff4-4e29-a776-06a4e04bad4e::331
ChangesĀ supportingĀ DoMTĀ release

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
        echo %cfgm% not found.
13
13
        exit /b 1
14
14
        )
 
15
if exist "%USERPROFILE%\domy\%BASE%.ini" (set userfiles=%USERPROFILE%\domy)
 
16
if exist "%USERPROFILE%\domt\%BASE%.ini" (set userfiles=%USERPROFILE%\domt)
15
17
 
16
 
set graphs=%USERPROFILE%\domy\graphs
17
 
set plugins=%USERPROFILE%\domy\plugins
 
18
set graphs=%userfiles%\graphs
 
19
set plugins=%userfiles%\plugins
18
20
set rootfolder=%HOMEDRIVE%\domy
19
21
 
20
22
set graphsexist=0
113
115
 
114
116
echo Example 1:  clean HTML/XML markup
115
117
echo.
116
 
if exist "%graphs%\clean-markup\Demonstration of named and numbered entities.conf" (
 
118
if exist "%graphs%\clean-markup\Demo - clean html xml entities.conf" (
117
119
        copy /y "%graphs%\clean-markup\config.ini" "%graphs%\clean-markup\.config.ini.tmp" > nul
118
 
        copy /y "%graphs%\clean-markup\Demonstration of named and numbered entities.conf" "%graphs%\clean-markup\config.ini" > nul
 
120
        copy /y "%graphs%\clean-markup\Demo - clean html xml entities.conf" "%graphs%\clean-markup\config.ini" > nul
119
121
        python "%cfgm%" -v clean-markup
120
122
        if errorlevel 1 (
121
123
                set result=1
159
161
echo.
160
162
echo Command:  "%~d0> %BASE% sa-champollion"
161
163
echo.
162
 
if exist "%graphs%\sa-champollion\Demonstration of Champollion sentence aligner en_cn-en.conf" (
 
164
if exist "%graphs%\sa-champollion\Demo - align zh_cn-en sentences with Champollion Tool Kit.conf" (
163
165
        copy /y "%graphs%\sa-champollion\config.ini" "%graphs%\sa-champollion\.config.ini.tmp" > nul
164
 
        copy /y "%graphs%\sa-champollion\Demonstration of Champollion sentence aligner en_cn-en.conf" "%graphs%\sa-champollion\config.ini" > nul
 
166
        copy /y "%graphs%\sa-champollion\Demo - align zh_cn-en sentences with Champollion Tool Kit.conf" "%graphs%\sa-champollion\config.ini" > nul
165
167
        python "%cfgm%" -v sa-champollion
166
168
        if errorlevel 1 (
167
169
                set result=1
207
209
echo.
208
210
echo Command:  "%~d0> %BASE% import-tmx"
209
211
echo.
210
 
if exist "%graphs%\import-tmx\Demonstration importing DGT TM 1.0 TMX files to DoMY.conf" (
 
212
if exist "%graphs%\import-tmx\Demo - import DGT TM 1.0 TMX files to corpus.conf" (
211
213
        copy /y "%graphs%\import-tmx\config.ini" "%graphs%\import-tmx\.config.ini.tmp" > nul
212
 
        copy /y "%graphs%\import-tmx\Demonstration importing DGT TM 1.0 TMX files to DoMY.conf" "%graphs%\import-tmx\config.ini" > nul
 
214
        copy /y "%graphs%\import-tmx\Demo - import DGT TM 1.0 TMX files to corpus.conf" "%graphs%\import-tmx\config.ini" > nul
213
215
        python "%cfgm%" -v import-tmx
214
216
        if errorlevel 1 (
215
217
                set result=1
251
253
echo.
252
254
echo Command:  "%~d0> %BASE% export-tmx"
253
255
echo.
254
 
if exist "%graphs%\export-tmx\Demonstration exporting to TMX files.conf" (
 
256
if exist "%graphs%\export-tmx\Demo - export corpora to TMX files.conf" (
255
257
        copy /y "%graphs%\export-tmx\config.ini" "%graphs%\export-tmx\.config.ini.tmp" > nul
256
 
        copy /y "%graphs%\export-tmx\Demonstration exporting to TMX files.conf" "%graphs%\export-tmx\config.ini" > nul
 
258
        copy /y "%graphs%\export-tmx\Demo - export corpora to TMX files.conf" "%graphs%\export-tmx\config.ini" > nul
257
259
        python "%cfgm%" -v export-tmx
258
260
        if errorlevel 1 (
259
261
                set result=1
298
300
echo.
299
301
echo Command:  "%~d0> %BASE% extract-dictionary"
300
302
echo.
301
 
if exist "%graphs%\extract-dictionary\Demonstration extracting custom dictionaries from corpus - zh_hk-en.conf" (
 
303
if exist "%graphs%\extract-dictionary\Demo - extract custom dictionaries from zh_uk-en corpus.conf" (
302
304
        copy /y "%graphs%\extract-dictionary\config.ini" "%graphs%\extract-dictionary\.config.ini.tmp" > nul
303
 
        copy /y "%graphs%\extract-dictionary\Demonstration extracting custom dictionaries from corpus - zh_hk-en.conf" "%graphs%\extract-dictionary\config.ini" > nul
 
305
        copy /y "%graphs%\extract-dictionary\Demo - extract custom dictionaries from zh_uk-en corpus.conf" "%graphs%\extract-dictionary\config.ini" > nul
304
306
        python "%cfgm%" -v extract-dictionary
305
307
        if errorlevel 1 (
306
308
                set result=1