Puts a set of documents into a single file in one of the ways Mallet likes. This function creates lines of the form
a list of file and folder names
the single file you want the contents of
extra arguments to control the process. See Details.
folder-name | NoLabel tab
This is the format called 'one instance per file' on the Mallet pages
(http://mallet.cs.umass.edu/import.php). If you provide folder names to
files argument the first line element will be the folder name
and the second element will be the names of file within it. If you provide filenames
individually then the first line element will be 'NoLabel' and the second element
will be the filename. You can mix these.
Note that you cannot provide folders of folders of files. The function looks for
files and folders in
files. For each of the folders it looks for files and adds
them. Then it stops looking. Also, files or folders with names beginning
with '.' will be ignored.
Optional arguments are
locale: Locale in ISO format, e.g. "en_US".
Defaults to whatever
encoding: the file encoding of the
files. Defaults to the
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.