sl_word_ids_sentences: Get indexes for each word in sentence

Description Usage Arguments Value Examples

View source: R/sl_word_ids_sentences.R

Description

Get indexes for each word in sentence

Usage

1
sl_word_ids_sentences(sentences, words)

Arguments

sentences

list of character vectors for each sentence

words

dictionary of words in corpus

Value

list of index vectors for each word in sentence

Examples

1
2
3
my_words <- c("hello","this","is")
my_sentences <-list(c("hello","is"),c("this","is"))
sl_word_ids_sentences(my_sentences,my_words)

CrumpLab/RsemanticLibrarian documentation built on Nov. 11, 2019, 1:04 p.m.