Skip to content

Commit 782827f

Browse files
Support for Windows when retrieving WNID from path (#13)
1 parent e6c3adb commit 782827f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ end
5656

5757
# Get WordNet ID from path
5858
get_wnids(paths::AbstractVector{<:AbstractString}) = path_to_wnid.(paths)
59-
path_to_wnid(path::AbstractString) = split(path, "/")[end - 1]
59+
path_to_wnid(path::AbstractString) = splitpath(path)[end - 1]

0 commit comments

Comments
 (0)