Skip to content

Commit 91e0565

Browse files
committed
fix error in find_path
1 parent 559bda9 commit 91e0565

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/find_path.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ word, which n-grams are best supported for a given position in the sequence of n
6565
- `sep_token::Union{Nothing, String, Char}=nothing`: separator token
6666
- `keep_sep::Bool=false`:if true, keep separators in cues
6767
- `target_col::Union{String, :Symbol}=:Words`: the column name for target strings
68+
- `start_end_token::Union{String, Char}="#"`: start and end token in boundary cues
6869
- `issparse::Symbol=:auto`: control of whether output of Mt matrix is a dense matrix or a sparse matrix
6970
- `sparse_ratio::Float64=0.2`: the ratio to decide whether a matrix is sparse
7071
- `if_pca::Bool=false`: turn on to enable pca mode
@@ -214,6 +215,7 @@ function learn_paths(
214215
sep_token = nothing,
215216
keep_sep = false,
216217
target_col = "Words",
218+
start_end_token = "#",
217219
issparse = :auto,
218220
sparse_ratio = 0.2,
219221
if_pca = false,
@@ -261,6 +263,7 @@ function learn_paths(
261263
tokenized = tokenized,
262264
sep_token = sep_token,
263265
keep_sep = keep_sep,
266+
start_end_token = start_end_token
264267
)
265268

266269
verbose && println("Calculating Mt...")

0 commit comments

Comments
 (0)