docfun

Syntax

Description

newDocuments = docfun(func,documents)
calls the function specified by the function handle func and
passes elements of documents as a string vector of words.

If func accepts exactly one input argument, then
the words of newDocuments(i) are the output of
func(string(documents(i))).

If func accepts two input arguments, then the
words of newDocuments(i) are the output of
func(string(documents(i)),details), where
details contains the corresponding token details
output by tokenDetails.

If func changes the number of words in the
document, then docfun removes the token details
from that document.

docfun does not perform the calls to function
func in a specific order.

newDocuments = docfun(func,documents1,...,documentsN)
calls the function specified by the function handle func and
passes elements of documents1,…,documentsN as string vectors of
words, where N is the number of inputs to the function
func. The words of newDocuments(i) are
the output of
func(string(documents1(i)),...,string(documentsN(i))).

This website uses cookies to improve your user experience, personalize content and ads, and analyze website traffic. By continuing to use this website, you consent to our use of cookies. Please see our Privacy Policy to learn more about cookies and how to change your settings.