Managing Documents

You can create different documents for different types of data from which text is generated. Before creating a document, ensure that a project has been created.

You can create, edit, and delete documents in a project, preview documents that have been customized, and view the generation result.

Creating a Document

  1. Log in to the LG console of NLP, and click the Beta Services tab.
  2. Click Access Text Generation Console. The Text Generation page is displayed.
  1. In a project you have created, click . The Create Document dialog box is displayed.
    Figure 1 Creating a document
  2. Set related parameters.
    • Name: The name can contain 2 to 50 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed, and the document name must be unique in the project.
    • Title: Set a title for the generated text. The value ranges from 2 to 50 characters.
    • Data Type: Select the data type used for generating text. You can select JSON, table, or knowledge graph. The document configuration varies depending on the data type.
  3. Click OK.

Editing a Document

To edit a document, click in the lower right corner of a document.

Deleting a Document

To delete a document, click in the lower right corner of the document.

Previewing a Document

To preview a document, click in the lower right corner of the document.

A document can be previewed only after the data and document structure are configured. Otherwise the text generation result cannot be obtained.