my_words = {
let document = selected_document
let my_words = theme_corpus.getDocument(document).getUniqueTerms()
my_words = my_words.map(w=>{
let corpusFreqWeight = corpus.getCollectionFrequencyWeight(w)
let themeFreqWeight = theme_corpus.getCollectionFrequencyWeight(w)
let obj = {
word: w,
themeFreqWeight: themeFreqWeight,
corpusFreqWeight: corpusFreqWeight
}
return obj
})
return my_words
}