text2sentences: Identifies sentences in a text string.

Description Usage Arguments Value References See Also Examples

Description

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

Usage

1
text2sentences(text, session = RCurl::getCurlHandle())

Arguments

text

A string (hopefully) containing sentences.

session

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

1
2
3
4
5
6
7
## 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)

rtelmore/RDSTK documentation built on May 12, 2019, 4:26 p.m.