Package io.anyline2.core
Class TrainerUtil
-
- All Implemented Interfaces:
public class TrainerUtil
-
-
Field Summary
Fields Modifier and Type Field Description public final static String
k_infoFileName
public final static String
k_tokenFileName
public final static String
k_configFileName
public final static String
k_apiKey
public final static String
k_projectID
public final static String
k_stage
public final static String
k_auth_header
public final static String
k_auth_header_default_value
public final static String
k_url
public final static String
k_assetID
public final static String
k_assetVersion
public final static String
k_anylineVersion
public final static String
k_url_default_value
public final static String
k_tokenCacheDirectory
public final static String
k_configCacheDirectory
public final static String
k_productName
-
Constructor Summary
Constructors Constructor Description TrainerUtil()
-
Method Summary
Modifier and Type Method Description synchronized void
delete()
static TrainerContext
parseContext(String trainerContext)
static String
getAuthToken(String trainerContext, NetworkInterface network)
static String
getAuthToken(TrainerContext trainerContext, NetworkInterface network)
static String
getProjectConfig(String trainerContext, NetworkInterface network)
static String
getProjectConfig(TrainerContext trainerContext, NetworkInterface network)
static String
reportCorrectedResult(String trainerContext, String blobKey, String correctedResult, NetworkInterface network)
static String
reportCorrectedResult(TrainerContext trainerContext, String blobKey, String correctedResult, NetworkInterface network)
-
-
Method Detail
-
delete
synchronized void delete()
-
parseContext
static TrainerContext parseContext(String trainerContext)
-
getAuthToken
static String getAuthToken(String trainerContext, NetworkInterface network)
-
getAuthToken
static String getAuthToken(TrainerContext trainerContext, NetworkInterface network)
-
getProjectConfig
static String getProjectConfig(String trainerContext, NetworkInterface network)
-
getProjectConfig
static String getProjectConfig(TrainerContext trainerContext, NetworkInterface network)
-
reportCorrectedResult
static String reportCorrectedResult(String trainerContext, String blobKey, String correctedResult, NetworkInterface network)
-
reportCorrectedResult
static String reportCorrectedResult(TrainerContext trainerContext, String blobKey, String correctedResult, NetworkInterface network)
-
-
-
-