Learn R Programming

RDSTK (version 1.1)

text2sentences: Identifies sentences in a text string.

Description

This function returns the legitimate sentences (if they exist) from a text string.

Usage

text2sentences(text, session=getCurlHandle())

Arguments

text
A string (hopefully) containing sentences.
session
This is the CURLHandle object giving the structure for the options and that will process the command. For curlMultiPerform, this is an object of class code MultiCURLHandle-class.

Value

A list containing
sentences
A string identifying the sentences in the text.

References

http://www.datasciencetoolkit.org/developerdocs#text2sentences

See Also

curlPerform, getCurlHandle, dynCurlReader

Examples

Run this code
	## Not run: 
# 		sentences <- "But this does, it contains enough words. So does this 
# 		one, it appears correct. This is long and complete enough too."
# 		text2sentences(sentences)
# 	## End(Not run)

Run the code above in your browser using DataLab