Skip to content

Commit e877b28

Browse files
committed
learn_paths wrapper function
1 parent bf2962e commit e877b28

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

src/find_path.jl

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,53 @@ struct Gold_Path_Info_Struct
1818
support::Float64
1919
end
2020

21+
function learn_paths(
22+
data,
23+
cue_obj,
24+
S_val,
25+
F_train,
26+
Chat_val;
27+
threshold = 0.1,
28+
is_tolerant = false,
29+
tolerance = (-1000.0),
30+
max_tolerance = 3,
31+
grams = 3,
32+
tokenized = true,
33+
sep_token = "_",
34+
keep_sep = true,
35+
target_col = :Verb_syll,
36+
verbose = true)
37+
38+
max_t = JudiLing.cal_max_timestep(data, target_col)
39+
40+
learn_paths(
41+
data,
42+
data,
43+
cue_obj.C,
44+
S_val,
45+
F_train,
46+
Chat_val,
47+
cue_obj.A,
48+
cue_obj.i2f,
49+
cue_obj.f2i;
50+
gold_ind = nothing,
51+
Shat_val = nothing,
52+
check_gold_path = false,
53+
max_t = max_t,
54+
max_can = 10,
55+
threshold = threshold,
56+
is_tolerant = is_tolerant,
57+
tolerance = tolerance,
58+
max_tolerance = max_tolerance,
59+
grams = grams,
60+
tokenized = tokenized,
61+
sep_token = sep_token,
62+
keep_sep = keep_sep,
63+
target_col = target_col,
64+
verbose = verbose,
65+
)
66+
end
67+
2168
"""
2269
learn_paths(data_train, data_val, C_train, S_val, F_train, Chat_val, A, i2f, f2i)
2370

0 commit comments

Comments
 (0)