Closed aquatiko closed 5 years ago
On slack, suggestion from @oxinabox which is reasonable:
Instead of having a keyword argument as a dict, make it a function that returns an iterator. The default value of that function would be (x)->[]
(ie, and empty array). In the get_sentiment
function, when we encounter a missing word, call this function, and add whatever it returns to res
.
Also, do not print anything in this function --- it can get very annoying to see log outputs like this from functions which work on user supplied data.
Regarding #83 Some changes to API will be: https://github.com/JuliaText/TextAnalysis.jl/blob/bb81bc93b4210b0c04f212e5c5040a63c30e0612/src/sentiment.jl#L81 to
and https://github.com/JuliaText/TextAnalysis.jl/blob/bb81bc93b4210b0c04f212e5c5040a63c30e0612/src/sentiment.jl#L38 to
Haven't tested the whole integration yet, just shows the major parts.