SummarizerOptions.OutputType

  • SummarizerOptions.OutputType is an annotation defining the type of output format for summarization.

  • It includes constants for specifying the number of bullets in the output: ONE_BULLET, TWO_BULLETS, and THREE_BULLETS.

  • Each constant represents a specific maximum number of bullet points the summarizer can generate, potentially returning fewer if the input text is short.

public static abstract @interface SummarizerOptions.OutputType implements Annotation

Type of output format.

Constant Summary

int ONE_BULLET The output text is one bullet, starting with "* ".
int THREE_BULLETS The output text is up to three bullets.
int TWO_BULLETS The output text is up to two bullets.

Inherited Method Summary

Constants

public static final int ONE_BULLET

The output text is one bullet, starting with "* ".

Constant Value: 1

public static final int THREE_BULLETS

The output text is up to three bullets.

Each bullet is on a new line, starting with "* ".

When the input text is too short, it can return one or two bullets instead.

Constant Value: 3

public static final int TWO_BULLETS

The output text is up to two bullets.

Each bullet is on a new line, starting with "* ".

When the input text is too short, it can return one bullet instead.

Constant Value: 2