TreeTagger
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
[[FrontPage]]
Download
------------
1. Download TreeTagger from [[here>ftp://ftp.ims.uni-stut...
2. Download the English parameter file from [[here>ftp://...
3. Uncompress 1. and 2. and read INSTALL.txt (below)
Installation
------------
1. Install a Perl interpreter (if you have not already in...
You can download a Perl interpreter for Windows for fr...
http://www.activestate.com/activeperl/
2. Move the TreeTagger directory to the root directory of...
3. Download the PC parameter files for the languages you ...
them (e.g. using Winzip or 7zip) and move them to the ...
Rename the parameter files to <language>.par
Example: Rename french-par-linux-3.1.bin to french.par
N.B. As of 2020, there are two parameter files PENN Tagse...
4. Add the path C:\TreeTagger\bin to the PATH environment...
5. Open a shell and type the command
set PATH=C:\TreeTagger\bin;%PATH%
6. Change to the directory C:\TreeTagger
7. Now you can test the tagger, e.g. by analyzing this fi...
tag-english INSTALL.txt
Examples
------------
c:\TreeTagger>set PATH=C:\TreeTagger\bin;%PATH%
c:\TreeTagger>tag-english INSTALL.txt > INSTALL.tag.txt
reading parameters ...
tagging ...
finished.
Chunker (for Mac-Intel)
------------
english-chunker-par-linux-3.2.bin.gz --> should be downlo...
-unzip the parameter file and move it to lib directory:
gzip -cd english-chunker-par-linux-3.2.bin.gz > lib/engl...
-test:
$ echo 'I was reading a book.' | cmd/tagger-chunker-engl...
$ cat hello.txt
<NC>
I PP I
</NC>
<VC>
was VBD be
reading VBG read
</VC>
<NC>
a DT a
book NN book
</NC>
. SENT .
Notes
------------
For Linux and Mac, Penn TreeBank tagset is default. If yo...
#last line
perl -pe 's/\tV[BDHV]/\VB/;s/IN\/that/\tIN/;'
--> perl -pe 's/IN\/that/\tIN/;'
------------
If you want to process multiple files with a batch. You c...
@echo off
for %%A in (%1) do tag-english %%A > %%A.tag
終了行:
[[FrontPage]]
Download
------------
1. Download TreeTagger from [[here>ftp://ftp.ims.uni-stut...
2. Download the English parameter file from [[here>ftp://...
3. Uncompress 1. and 2. and read INSTALL.txt (below)
Installation
------------
1. Install a Perl interpreter (if you have not already in...
You can download a Perl interpreter for Windows for fr...
http://www.activestate.com/activeperl/
2. Move the TreeTagger directory to the root directory of...
3. Download the PC parameter files for the languages you ...
them (e.g. using Winzip or 7zip) and move them to the ...
Rename the parameter files to <language>.par
Example: Rename french-par-linux-3.1.bin to french.par
N.B. As of 2020, there are two parameter files PENN Tagse...
4. Add the path C:\TreeTagger\bin to the PATH environment...
5. Open a shell and type the command
set PATH=C:\TreeTagger\bin;%PATH%
6. Change to the directory C:\TreeTagger
7. Now you can test the tagger, e.g. by analyzing this fi...
tag-english INSTALL.txt
Examples
------------
c:\TreeTagger>set PATH=C:\TreeTagger\bin;%PATH%
c:\TreeTagger>tag-english INSTALL.txt > INSTALL.tag.txt
reading parameters ...
tagging ...
finished.
Chunker (for Mac-Intel)
------------
english-chunker-par-linux-3.2.bin.gz --> should be downlo...
-unzip the parameter file and move it to lib directory:
gzip -cd english-chunker-par-linux-3.2.bin.gz > lib/engl...
-test:
$ echo 'I was reading a book.' | cmd/tagger-chunker-engl...
$ cat hello.txt
<NC>
I PP I
</NC>
<VC>
was VBD be
reading VBG read
</VC>
<NC>
a DT a
book NN book
</NC>
. SENT .
Notes
------------
For Linux and Mac, Penn TreeBank tagset is default. If yo...
#last line
perl -pe 's/\tV[BDHV]/\VB/;s/IN\/that/\tIN/;'
--> perl -pe 's/IN\/that/\tIN/;'
------------
If you want to process multiple files with a batch. You c...
@echo off
for %%A in (%1) do tag-english %%A > %%A.tag
ページ名: