download info
This commit is contained in:
parent
642543808e
commit
683a73fed3
@ -10,13 +10,15 @@ const cache_prefix = "https://cache.julialang.org"
|
|||||||
function load()
|
function load()
|
||||||
suffixes = ["", ".phones", ".symbols"]
|
suffixes = ["", ".phones", ".symbols"]
|
||||||
if isdir(deps("cmudict"))
|
if isdir(deps("cmudict"))
|
||||||
if all(isfile.(["cmudict$x" for x in suffixes]))
|
if all(isfile(deps("cmudict", "cmudict$x")) for x in suffixes)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
info("Downloading CMUDict dataset")
|
||||||
mkpath(deps("cmudict"))
|
mkpath(deps("cmudict"))
|
||||||
for x in suffixes
|
for x in suffixes
|
||||||
download("$cache_prefix/http://svn.code.sf.net/p/cmusphinx/code/trunk/cmudict/cmudict-$version$x", deps("cmudict", "cmudict$x"))
|
download("$cache_prefix/http://svn.code.sf.net/p/cmusphinx/code/trunk/cmudict/cmudict-$version$x",
|
||||||
|
deps("cmudict", "cmudict$x"))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@ function load()
|
|||||||
"t10k-images-idx3-ubyte",
|
"t10k-images-idx3-ubyte",
|
||||||
"t10k-labels-idx1-ubyte"]
|
"t10k-labels-idx1-ubyte"]
|
||||||
isfile(file) && continue
|
isfile(file) && continue
|
||||||
|
info("Downloading MNIST dataset")
|
||||||
download("https://cache.julialang.org/http://yann.lecun.com/exdb/mnist/$file.gz", "$file.gz")
|
download("https://cache.julialang.org/http://yann.lecun.com/exdb/mnist/$file.gz", "$file.gz")
|
||||||
open(file, "w") do io
|
open(file, "w") do io
|
||||||
write(io, GZip.open(read, "$file.gz"))
|
write(io, GZip.open(read, "$file.gz"))
|
||||||
|
@ -4,10 +4,10 @@ using ZipFile
|
|||||||
using ..Data: deps
|
using ..Data: deps
|
||||||
|
|
||||||
function load()
|
function load()
|
||||||
isfile(deps("sentiment.zip")) ||
|
isfile(deps("sentiment.zip")) || return
|
||||||
download("https://cache.julialang.org/https://nlp.stanford.edu/sentiment/trainDevTestTrees_PTB.zip",
|
info("Downloading sentiment treebank dataset")
|
||||||
deps("sentiment.zip"))
|
download("https://cache.julialang.org/https://nlp.stanford.edu/sentiment/trainDevTestTrees_PTB.zip",
|
||||||
return
|
deps("sentiment.zip"))
|
||||||
end
|
end
|
||||||
|
|
||||||
getfile(r, name) = r.files[findfirst(x -> x.name == name, r.files)]
|
getfile(r, name) = r.files[findfirst(x -> x.name == name, r.files)]
|
||||||
|
Loading…
Reference in New Issue
Block a user