Package io.anyline2.core
Class TrainerUtil
- java.lang.Object
-
- io.anyline2.core.TrainerUtil
-
public class TrainerUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
k_anylineVersion
static java.lang.String
k_apiKey
static java.lang.String
k_assetID
static java.lang.String
k_assetVersion
static java.lang.String
k_auth_header
static java.lang.String
k_auth_header_default_value
static java.lang.String
k_configCacheDirectory
static java.lang.String
k_configFileName
static java.lang.String
k_infoFileName
static java.lang.String
k_productName
static java.lang.String
k_projectID
static java.lang.String
k_stage
static java.lang.String
k_tokenCacheDirectory
static java.lang.String
k_tokenFileName
static java.lang.String
k_url
static java.lang.String
k_url_default_value
-
Constructor Summary
Constructors Constructor Description TrainerUtil()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
static java.lang.String
getAuthToken(TrainerContext trainerContext)
static java.lang.String
getAuthToken(java.lang.String trainerContext)
static java.lang.String
getProjectConfig(TrainerContext trainerContext)
static java.lang.String
getProjectConfig(java.lang.String trainerContext)
static TrainerContext
parseContext(java.lang.String trainerContext)
static java.lang.String
reportCorrectedResult(TrainerContext trainerContext, java.lang.String blobKey, java.lang.String correctedResult)
static java.lang.String
reportCorrectedResult(java.lang.String trainerContext, java.lang.String blobKey, java.lang.String correctedResult)
-
-
-
Field Detail
-
k_infoFileName
public static final java.lang.String k_infoFileName
-
k_tokenFileName
public static final java.lang.String k_tokenFileName
-
k_configFileName
public static final java.lang.String k_configFileName
-
k_apiKey
public static final java.lang.String k_apiKey
-
k_projectID
public static final java.lang.String k_projectID
-
k_stage
public static final java.lang.String k_stage
-
k_auth_header
public static final java.lang.String k_auth_header
-
k_auth_header_default_value
public static final java.lang.String k_auth_header_default_value
-
k_url
public static final java.lang.String k_url
-
k_assetID
public static final java.lang.String k_assetID
-
k_assetVersion
public static final java.lang.String k_assetVersion
-
k_anylineVersion
public static final java.lang.String k_anylineVersion
-
k_url_default_value
public static final java.lang.String k_url_default_value
-
k_tokenCacheDirectory
public static final java.lang.String k_tokenCacheDirectory
-
k_configCacheDirectory
public static final java.lang.String k_configCacheDirectory
-
k_productName
public static final java.lang.String k_productName
-
-
Method Detail
-
delete
public void delete()
-
parseContext
public static TrainerContext parseContext(java.lang.String trainerContext)
-
getAuthToken
public static java.lang.String getAuthToken(java.lang.String trainerContext)
-
getAuthToken
public static java.lang.String getAuthToken(TrainerContext trainerContext)
-
getProjectConfig
public static java.lang.String getProjectConfig(java.lang.String trainerContext)
-
getProjectConfig
public static java.lang.String getProjectConfig(TrainerContext trainerContext)
-
reportCorrectedResult
public static java.lang.String reportCorrectedResult(java.lang.String trainerContext, java.lang.String blobKey, java.lang.String correctedResult)
-
reportCorrectedResult
public static java.lang.String reportCorrectedResult(TrainerContext trainerContext, java.lang.String blobKey, java.lang.String correctedResult)
-
-