cortical_text_slices: Slice the text up

Description Usage Arguments Value See Also

Description

Returns an ordered list of text objects (ordered according to where the text slice appears in the input text). A Text object consists of a text slice (defined as a slice by the Retina) and a Fingerprint object corresponding to the text slice.

Usage

1
2
cortical_text_slices(text, retina_name = "en_associative", start_index = 0,
  max_results = 10, get_fingerprint = FALSE, api_key = NULL)

Arguments

text

input a character vector: "a small lamb walked ..."

retina_name

one of en_associative or en_synomous see retina.

start_index

start of the index (if multiple pages are returned)

max_results

maximum number of result per page.

get_fingerprint

true or false, return sparse matrix representation

api_key

your key, if you saved the key in .renviron leave this NULL.

Value

results

See Also

Other text: cortical_text_keywords, cortical_text_language, cortical_text_representation, cortical_text_tokenize


RMHogervorst/corticalio documentation built on May 8, 2019, 7:33 a.m.