java.lang.Object
org.apache.uima.collection.impl.cpm.vinci.Vinci

public class Vinci extends Object
  • Field Details

  • Constructor Details

    • Vinci

      public Vinci()
  • Method Details

    • getAFrame

      private AFrame getAFrame()
      Returns a new VinciFrame
      Returns:
      VinciFrame instance
    • replyWithError

      public VinciFrame replyWithError(String errorMsg)
      Creates and populates an error frame.
      Parameters:
      errorMsg - - error message to place in the error frame
      Returns:
      VinciFrame instance containing error
    • replyWithAnalysis

      public static AFrame replyWithAnalysis(BaseClient conn, VinciFrame requestFrame) throws Exception
      Package the VinciFrame containing result of the requested operation into a Vinci Data frame.
      Parameters:
      conn - the connection
      requestFrame - VinciFrame containing result of thsi service operation
      Returns:
      VinciFrame VinciData frame.
      Throws:
      Exception - -
    • replyWithAnalysis

      public static AFrame replyWithAnalysis(VinciClient conn, VinciFrame requestFrame) throws Exception
      Package the VinciFrame containing result of the requested operation into a Vinci Data frame.
      Parameters:
      conn - the connection
      requestFrame - VinciFrame containing result of thsi service operation
      Returns:
      VinciFrame VinciData frame.
      Throws:
      Exception
    • produceAFrame

      public static AFrame produceAFrame(String cmd, String content)
    • extractKEYSAsString

      public static String extractKEYSAsString(AFrame frame)
    • getFeatureValueByType

      public static String getFeatureValueByType(CasData aCAS, String featureName)
    • getContentFromDATACas

      public static String getContentFromDATACas(CasData aCas)
    • stripVinciFrame

      public static String stripVinciFrame(VinciFrame aFrame)
      Returns a content from a given VinciFrame.