Class ConvertSegmentsToTextUnitsStep

  • All Implemented Interfaces:
    AutoCloseable, Function<Stream<Event>,​Stream<Event>>, IPipelineStep

    public class ConvertSegmentsToTextUnitsStep
    extends BasePipelineStep
    Convert single segmented ITextUnits to multiple TextUnits, one per aligned sentence pair, for each target locale. If the TextUnit refers to another IResource or is a referent then pass it on as-is even if it has segments. It's possible these could be safely processed, but it would take considerable effort to implement.
    Author:
    hargrave
    • Constructor Detail

      • ConvertSegmentsToTextUnitsStep

        public ConvertSegmentsToTextUnitsStep()
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: IPipelineStep
        Gets the localizable name of this step.
        Returns:
        the localizable name of this step.
      • getDescription

        public String getDescription()
        Description copied from interface: IPipelineStep
        Gets a short localizable description of what this step does.
        Returns:
        the text of a short description of what this step does.