Open topic with navigation

# Lua Scripts Included With CFS

The CFS installation directory includes a `scripts` folder that includes the following Lua scripts:

Script | Description
--- | ---
`AddLanguageDetectionFields.lua` | Detects the language of a document’s content, using the IDOL Server action `DetectLanguage`. The script then adds fields describing the language and encoding to the document’s metadata. The script demonstrates how to: send an action to an ACI server. parse the action response to a `LuaXmlDocument`. use the methods of `LuaXmlDocument` to extract data from the document. The script assumes that an IDOL Server is installed on the local machine with an ACI port of 9000. You might need to modify these values. If you use this script, run it as a post import task so that it runs after KeyView has extracted document content.
`CategorySuggestFromText.lua` | Sends a document to IDOL for categorization, and adds information about the matching categories to the document's metadata. For information about how to use this script, see Categorize Documents.
`identifiers.lua` | Adds sub-file indexes to the `AUTN_IDENTIFIER` document field of sub-files. This allows a connector to retrieve the sub-file, rather than the whole container, when the `collect` or `view` actions are used to retrieve the original file. If you use this script, you must run it as a post import task (so that it runs after KeyView processes the documents). For more information about the `AUTN_IDENTIFIER` field, see AUTN_IDENTIFIER.
`IdolSpeech.lua` | Runs speech-to text on all files identified by KeyView as containing audio or video. To use this script, you must configure the settings for your IDOL Speech Server in the `[IdolSpeechSettings]` section of the CFS configuration file. For more information about using this script, see Run Analysis on All Audio and Video Files.
`ImageAnalysis.lua` | Runs analysis on all images that can be processed by Image Server (including PDF files). To use this script, you must set the `ImageServerHost` and `ImageServerPort` parameters in the `[ImageServerSettings]` section of your CFS configuration file. For more information about using this script, see Run Image Analysis on All Supported Images.

Note: CFS also includes scripts for use with Eduction. Some of these scripts are Eduction post processing scripts, which modify the output from an Eduction import task. The post processing scripts have the entry point `function processmatch (edkmatch)`, rather than `function handler (document)`. You must run a post processing script using the Eduction import task. Do not run an Eduction post processing script using a Lua task. For more information about Eduction Lua Post Processing, see Lua Post Processing. For information about the Eduction scripts that are included with CFS, refer to the Eduction User Guide.

© 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close We welcome your comments! To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm