JuliaText / CorpusLoaders.jl

A variety of loaders for various NLP corpora.
Other
32 stars 13 forks source link

A way of exposing the fact that there are multiple DataDeps defined for some Corpora #11

Open oxinabox opened 6 years ago

oxinabox commented 6 years ago

SemCor for example has many versions of the database with datadeps defined.

What I kind of want to do is make a function: (for some corpus called Corpus) `datadeps(::Type{Corpus})=["datadep name 1", "datadep name 2" ....] or something like that.

I think that would work, if using plain strings. Then to summon them programmatically one would do:

Corpus(@datadep_str datadeps(Corpus)[1])

or normally via

Corpus(datadep"datadep name 1")

This would go well with https://github.com/oxinabox/DataDeps.jl/issues/8

oxinabox commented 6 years ago

Embeddings.jl does this.