Class AlternateTheme

java.lang.Object
com.lexalytics.salience.AlternateTheme

public class AlternateTheme
extends java.lang.Object

An alternate theme ...

  • Constructor Summary

    Constructors 
    Constructor Description
    AlternateTheme​(java.lang.String sAlternateTheme, float fScore)
    Creates a new alternate theme.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getAlternateTheme()
    The alternate theme text
    float getScore()
    Score giving indication of the strength of the alternate themes, higher scores are stronger alternate themes.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AlternateTheme

      public AlternateTheme​(java.lang.String sAlternateTheme, float fScore)
      Creates a new alternate theme. This is not intended for client use. Alternate themes are created by Salience Engine when theme-related API methods are called.
      Parameters:
      sAlternateTheme - The alternate theme text.
      fScore - Score giving indication of the strength of the alternate theme, higher scores are stronger.
  • Method Details

    • getAlternateTheme

      public java.lang.String getAlternateTheme()
      The alternate theme text
      Returns:
      A String object with the text of the alternate theme.
    • getScore

      public float getScore()
      Score giving indication of the strength of the alternate themes, higher scores are stronger alternate themes. This is a positive value, where greater values indicate themes that are stronger indications of the central message of the content.
      Returns:
      The score associated with the alternate theme.