Method | Defined By | ||
---|---|---|---|
getLuaScript(requestParams:Object):String [static]
Generate lua script
| CoreRequesterHelper | ||
getLuaScript4_exam(resource:String, params:Object):String [static]
Lua script generator for exam cores
| CoreRequesterHelper | ||
getLuaScript4_snt_exam(resource:String, params:Object):String [static]
Lua script generator for snt.exam cores
| CoreRequesterHelper | ||
getLuaScript4Eval(resource:String, params:Object):String [static]
Lua script generator for eval cores
| CoreRequesterHelper | ||
getLuaScript4Rec(params:Object):String [static]
Lua script generator for rec cores
| CoreRequesterHelper | ||
getLuaScript4Sync(resource:String, params:Object):String [static]
Lua script generator for sync cores
| CoreRequesterHelper | ||
getWaveHeader(sampleRate:int, sampleAlign:int = 16):ByteArray [static]
Generate wave header
| CoreRequesterHelper |
Constant | Defined By | ||
---|---|---|---|
RESOURCE_ENG_CHOC : String = eng.choc [static] | CoreRequesterHelper | ||
RESOURCE_ENGLISH_SYN : String = english:syn [static] | CoreRequesterHelper | ||
RESOURCE_ENG_OESY : String = eng.oesy [static] | CoreRequesterHelper | ||
RESOURCE_ENG_PFLW : String = eng.pflw [static] | CoreRequesterHelper | ||
RESOURCE_ENG_PICT : String = eng.pict [static] | CoreRequesterHelper | ||
RESOURCE_ENG_PQAN : String = eng.pqan [static] | CoreRequesterHelper | ||
RESOURCE_ENG_PRED : String = eng.pred [static] | CoreRequesterHelper | ||
RESOURCE_ENG_PRTL : String = eng.prtl [static] | CoreRequesterHelper | ||
RESOURCE_ENG_Q3A5 : String = eng.q3a5 [static] | CoreRequesterHelper | ||
RESOURCE_ENG_REC : String = eng.rec [static] | CoreRequesterHelper | ||
RESOURCE_ENG_SCNE : String = eng.scne [static] | CoreRequesterHelper | ||
RESOURCE_ENG_SNT : String = eng.snt [static] | CoreRequesterHelper | ||
RESOURCE_ENG_SNT_RSPLP : String = eng.snt.rsplp [static] | CoreRequesterHelper | ||
RESOURCE_ENG_SRED : String = eng.sred [static] | CoreRequesterHelper | ||
RESOURCE_ENG_SRTL : String = eng.srtl [static] | CoreRequesterHelper | ||
RESOURCE_ENG_STRN : String = eng.strn [static] | CoreRequesterHelper | ||
RESOURCE_ENG_WRD : String = eng.wrd [static] | CoreRequesterHelper |
getLuaScript | () | method |
public static function getLuaScript(requestParams:Object):String
Generate lua script
Parameters
requestParams:Object — {
coreType,
refText,
scoreType
(rec)
grammar
language,
confidenceThreshold,
resource,
luaScript
}
|
String |
getLuaScript4_exam | () | method |
public static function getLuaScript4_exam(resource:String, params:Object):String
Lua script generator for exam cores
Parameters
resource:String — eng.pred, etc
| |
params:Object — request params
|
String — lua script for exam scores
|
getLuaScript4_snt_exam | () | method |
public static function getLuaScript4_snt_exam(resource:String, params:Object):String
Lua script generator for snt.exam cores
Parameters
resource:String — eng.sred, eng.srtl
| |
params:Object — request params
|
String — lua script for snt.exam cores.
|
getLuaScript4Eval | () | method |
public static function getLuaScript4Eval(resource:String, params:Object):String
Lua script generator for eval cores
Parameters
resource:String — (eng.snt | eng.wrd | eng.rec)
| |
params:Object — request params
|
String — lua script for eval cores
|
getLuaScript4Rec | () | method |
public static function getLuaScript4Rec(params:Object):String
Lua script generator for rec cores
Parameters
params:Object — request params
|
String — lua script for rec cores
|
getLuaScript4Sync | () | method |
public static function getLuaScript4Sync(resource:String, params:Object):String
Lua script generator for sync cores
Parameters
resource:String — (english:syn)
| |
params:Object — request params
|
String — lua script for syn cores
|
getWaveHeader | () | method |
public static function getWaveHeader(sampleRate:int, sampleAlign:int = 16):ByteArray
Generate wave header
Parameters
sampleRate:int | |
sampleAlign:int (default = 16 )
|
ByteArray —
|
RESOURCE_ENG_CHOC | Constant |
public static const RESOURCE_ENG_CHOC:String = eng.choc
RESOURCE_ENG_OESY | Constant |
public static const RESOURCE_ENG_OESY:String = eng.oesy
RESOURCE_ENG_PFLW | Constant |
public static const RESOURCE_ENG_PFLW:String = eng.pflw
RESOURCE_ENG_PICT | Constant |
public static const RESOURCE_ENG_PICT:String = eng.pict
RESOURCE_ENG_PQAN | Constant |
public static const RESOURCE_ENG_PQAN:String = eng.pqan
RESOURCE_ENG_PRED | Constant |
public static const RESOURCE_ENG_PRED:String = eng.pred
RESOURCE_ENG_PRTL | Constant |
public static const RESOURCE_ENG_PRTL:String = eng.prtl
RESOURCE_ENG_Q3A5 | Constant |
public static const RESOURCE_ENG_Q3A5:String = eng.q3a5
RESOURCE_ENG_REC | Constant |
public static const RESOURCE_ENG_REC:String = eng.rec
RESOURCE_ENG_SCNE | Constant |
public static const RESOURCE_ENG_SCNE:String = eng.scne
RESOURCE_ENG_SNT | Constant |
public static const RESOURCE_ENG_SNT:String = eng.snt
RESOURCE_ENG_SNT_RSPLP | Constant |
public static const RESOURCE_ENG_SNT_RSPLP:String = eng.snt.rsplp
RESOURCE_ENG_SRED | Constant |
public static const RESOURCE_ENG_SRED:String = eng.sred
RESOURCE_ENG_SRTL | Constant |
public static const RESOURCE_ENG_SRTL:String = eng.srtl
RESOURCE_ENG_STRN | Constant |
public static const RESOURCE_ENG_STRN:String = eng.strn
RESOURCE_ENG_WRD | Constant |
public static const RESOURCE_ENG_WRD:String = eng.wrd
RESOURCE_ENGLISH_SYN | Constant |
public static const RESOURCE_ENGLISH_SYN:String = english:syn