I'm a newbie on batch. I'm trying to use a pos tagger called treetagger without using the UI.
I would like to write a good batch script in order to:
- look to a directory where there are my files .txt
- loop through them and execute the treetagger program
- write every time the result in a new text file with the same name of the original one + "TTG".
This is my code stored in a batch file, in the Treetagger bin directory with the text files:
Code: Select all
@echo off
for %%f in (*.*) do
tag-french %%f
echo >> t_res.txt
pause