📄 lopar2pos.pl.svn-base
字号:
#!/usr/bin/perl -w#lopar2pos: extract POSs from LOPAR output#usage: lopar2pos.pl CORPUS.lopar > CORPUS.posmy $infilename = shift @ARGV;open(INFILE, "<$infilename") or die "couldn't open '$infilename' for read: $!\n";while(my $line = <INFILE>){ my @words = split(/\s+/, $line); my @tags = map {$_ =~ /^[^_]*_([A-Z]+)/; $1} @words; print join(' ', @tags) . "\n";}close(INFILE);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -