Open topic with navigation

# Segment Text

Japanese, Korean, Mandarin, and Taiwanese Mandarin languages do not separate words with whitespace. You must segment text in these languages into words before HPE IDOL Speech Server can process them.

To segment text

- Send an `AddTask` action to HPE IDOL Speech Server, and set the following parameters:

  `Type` | The task name. Set to `SegmentText`.
  `Lang` | The language pack to use.
  `TxtFileIn` | The text file to segment.
  `TxtFileOut` | The text file to write the segmented text to.
  `Pgf` | The pronunciation information file to use.

  To exempt a section of text from segmentation, move the section to a new line and add hash symbols (#) at the beginning and end of the section. You must also set the `IgnoreHashLines` parameter:

  `IgnoreHashLines` | Set to `True` to exempt sections bounded by hash symbols from segmentation.

For example:

    http://localhost:13000/action=AddTask&Type=SegmentText&Lang=JAJP&TxtFileIn=C:/Data/Japanese.txt&TxtFileOut=JA_seg.txt&PgfFile=T:\LP\ENUK\ver-ENUK-5.0.pgf

This action uses port `13000` to instruct HPE IDOL Speech Server, which is located on the local machine, to segment text in the `Japanese.txt` file and write the results to the `JA_seg.txt` file in the `Temp` directory.

© 2015-2017 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close Send documentation feedback 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. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm