Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add data set for text analysis #19

Open
ablaom opened this issue Jan 8, 2024 · 0 comments
Open

Add data set for text analysis #19

ablaom opened this issue Jan 8, 2024 · 0 comments

Comments

@ablaom
Copy link
Member

ablaom commented Jan 8, 2024

Taken from the MLJText.jl requirements for transformers:

Generate a vector whose elements are either tokenized documents or bags of words/ngrams. Specifically, each element would be one of the following:

  • A vector of abstract strings (tokens), e.g., ["I", "like", "Sam",
    ".", "Sam", "is", "nice", "."] (scitype AbstractVector{Textual})

  • A dictionary of counts, indexed on abstract strings, e.g.,
    Dict("I"=>1, "Sam"=>2, "Sam is"=>1) (scitype Multiset{Textual}})

  • A dictionary of counts, indexed on plain ngrams, e.g.,
    Dict(("I",)=>1, ("Sam",)=>2, ("I", "Sam")=>1) (scitype
    Multiset{<:NTuple{N,Textual} where N}); here a plain ngram is a
    tuple of abstract strings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant