We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6c3adb commit 782827fCopy full SHA for 782827f
src/utils.jl
@@ -56,4 +56,4 @@ end
56
57
# Get WordNet ID from path
58
get_wnids(paths::AbstractVector{<:AbstractString}) = path_to_wnid.(paths)
59
-path_to_wnid(path::AbstractString) = split(path, "/")[end - 1]
+path_to_wnid(path::AbstractString) = splitpath(path)[end - 1]
0 commit comments