diff --git a/src/utils.jl b/src/utils.jl index 7a3d2a7..2e647f6 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -56,4 +56,4 @@ end # Get WordNet ID from path get_wnids(paths::AbstractVector{<:AbstractString}) = path_to_wnid.(paths) -path_to_wnid(path::AbstractString) = split(path, "/")[end - 1] +path_to_wnid(path::AbstractString) = splitpath(path)[end - 1]