Text Corpus
Load a directory or nested directory of .txt files into Visual Notebooks. Each file is read as a single row.
Configuration
| Field | Description |
|---|---|
| Name default=name of an uploaded file | A user-specified node name displayed in the workspace |
| File Required | The file or files to upload |
| Upload data from a directory or nested directory of text files. Files are stored in a scalable cloud environment with stringent security measures. The total size of all uploaded files must not exceed 15 MB. |
Node Inputs/Outputs
| Input | None |
|---|---|
| Output | Visual Notebooks returns a table, called a dataframe, that contains all uploaded data. There is a "filename" column and a "text" column. Both columns are strings. |

Figure 1: Example dataframe output
Examples
- Drag and drop the directory of .txt files that you want to upload into the
outlined space, or use the "Browse" button to select the directory from your
computer.- The directory shown below is used in this example. Notice that there are
seven files in the main directory, and an additional three files in the
"more_data" subdirectory.
- The directory shown below is used in this example. Notice that there are

Figure 2: Example directory of text files
- Upload the files in the directory then select "Run" to create a dataframe.
- Notice that each text file becomes a single row in the database, including
the files in the "more_data" subdirectory.
- Notice that each text file becomes a single row in the database, including
Figure 3: Example dataframe created from a text corpus