-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from glicerico/file_MI
Add file-based weights mode to MST parser
- Loading branch information
Showing
6 changed files
with
326 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
###LEFT-WALL### A mom is a human . | ||
0 ###LEFT-WALL### 1 A 0.1 | ||
0 ###LEFT-WALL### 2 mom 0.1 | ||
0 ###LEFT-WALL### 3 is 0.1 | ||
0 ###LEFT-WALL### 4 a 0.1 | ||
0 ###LEFT-WALL### 5 human 0.1 | ||
0 ###LEFT-WALL### 6 . 0.1 | ||
1 A 2 mom 0.1 | ||
1 A 3 is 0.2 | ||
1 A 4 a 0.3 | ||
1 A 5 human 0.4 | ||
1 A 6 . 0.5 | ||
2 mom 1 A 0.11 | ||
2 mom 3 is 0.21 | ||
2 mom 4 a 0.31 | ||
2 mom 5 human 0.41 | ||
2 mom 6 . 0.51 | ||
3 is 1 A 0.12 | ||
3 is 2 mom 0.22 | ||
3 is 4 a 0.32 | ||
3 is 5 human 0.42 | ||
3 is 6 . 0.52 | ||
4 a 1 A 0.13 | ||
4 a 2 mom 0.23 | ||
4 a 3 is 0.33 | ||
4 a 5 human 0.43 | ||
4 a 6 . 0.53 | ||
5 human 1 A 0.14 | ||
5 human 2 mom 0.24 | ||
5 human 3 is 0.34 | ||
5 human 4 a 0.44 | ||
5 human 6 . 0.54 | ||
6 . 1 A 0.15 | ||
6 . 2 mom 0.25 | ||
6 . 3 is 0.35 | ||
6 . 4 a 0.45 | ||
6 . 5 human 0.55 | ||
|
||
###LEFT-WALL### A dad is a human . | ||
0 ###LEFT-WALL### 1 A 0.1 | ||
0 ###LEFT-WALL### 2 dad 0.1 | ||
0 ###LEFT-WALL### 3 is 0.1 | ||
0 ###LEFT-WALL### 4 a 0.1 | ||
0 ###LEFT-WALL### 5 human 0.1 | ||
0 ###LEFT-WALL### 6 . 0.1 | ||
1 A 2 dad 0.1 | ||
1 A 3 is 0.2 | ||
1 A 4 a 0.3 | ||
1 A 5 human 0.4 | ||
1 A 6 . 0.5 | ||
2 dad 1 A 0.11 | ||
2 dad 3 is 0.21 | ||
2 dad 4 a 0.31 | ||
2 dad 5 human 0.41 | ||
2 dad 6 . 0.51 | ||
3 is 1 A 0.12 | ||
3 is 2 dad 0.22 | ||
3 is 4 a 0.32 | ||
3 is 5 human 0.42 | ||
3 is 6 . 0.52 | ||
4 a 1 A 0.13 | ||
4 a 2 dad 0.23 | ||
4 a 3 is 0.33 | ||
4 a 5 human 0.43 | ||
4 a 6 . 0.53 | ||
5 human 1 A 0.14 | ||
5 human 2 dad 0.24 | ||
5 human 3 is 0.34 | ||
5 human 4 a 0.44 | ||
5 human 6 . 0.54 | ||
6 . 1 A 0.15 | ||
6 . 2 dad 0.25 | ||
6 . 3 is 0.35 | ||
6 . 4 a 0.45 | ||
6 . 5 human 0.55 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# PARAMETERS for NLP pipeline | ||
# variable_name=value #possibilities | ||
|
||
export cnt_mode="clique-dist" # clique, clique-dist or any | ||
export cnt_mode="file" # clique, clique-dist, any, or file | ||
export cnt_reach=6 # num-parses for any, or win-size for cliques | ||
export mst_dist="#t" # #t or #f; use distance weight during mst | ||
export mst_dist="#f" # #t or #f; use distance weight during mst | ||
export exp_parses="#t" # #t or #f; exports parses in folder mst-parses | ||
export split_sents="#t" # #t or #f; calls sentence splitter before parser | ||
export split_sents="#f" # #t or #f; calls sentence splitter before parser | ||
#TODO export store_fmi="#t" # #t or #f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.