Skip to content

Commit

Permalink
change default starting depth
Browse files Browse the repository at this point in the history
  • Loading branch information
LennMars committed Feb 18, 2013
1 parent d0e97c9 commit dc0c9e0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion evaluate/experiment.pl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
if ($#ARGV == -1) {
print "usage: experiment.pl [-d dict]... [-d1 depth] [-d2 depth] [-mod] [-h] [-c file] -m model input
-d dict: 特徴量に用いる辞書ファイル. 複数指定可能.
-d1/d2 depth: XML から IOB フォーマットへの変換時にこの値以上ネストしている所のみ出力する. デフォルト0.
-d1/d2 depth: XML から IOB フォーマットへの変換時にこの値以上ネストしている所のみ出力する. デフォルト 1.
-c file: file を正解 XML ファイルとして IOB フォーマットへの変換時に比較を行う.
-mod: -c 設定時のみ有効. 正解ファイル中の modality を考慮する.
-h: CRF 出力の評価用形式を読みやすい形にする
Expand Down
4 changes: 2 additions & 2 deletions evaluate/xml_to_charwise_iob.pl
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
exit 1;
}

my $start_depth_correct = 0;
my $start_depth_answer = 0;
my $start_depth_correct = 1;
my $start_depth_answer = 1;
my $is_modality_concerned = 0;
my $wild_char = '';
my $is_readable_mode = 0;
Expand Down
2 changes: 1 addition & 1 deletion sample/test/test_sample.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ echo "converting CRF++ output into XML format."
../../evaluate/crfout_to_xml.pl < $outdir/crfout.txt > $outdir/crfout.xml

echo "comparing output with correct tagging."
../../evaluate/xml_to_charwise_iob.pl -d1 1 -d2 1 -mod -h ../../sample/learn/sample.xml $outdir/crfout.xml > $outdir/cmp.txt
../../evaluate/xml_to_charwise_iob.pl -mod -h ../../sample/learn/sample.xml $outdir/crfout.xml > $outdir/cmp.txt

echo "done.\n"

Expand Down

0 comments on commit dc0c9e0

Please sign in to comment.