Enum Class的使用
com.walker.semantics.SpeechPart
使用SpeechPart的程序包
-
com.walker.semantics中SpeechPart的使用
修饰符和类型方法说明WordMeta.getSpeechPart()static SpeechPartSpeechPart.toSpeechPart(String index) static SpeechPartReturns the enum constant of this class with the specified name.static SpeechPart[]SpeechPart.values()Returns an array containing the constants of this enum class, in the order they are declared.参数类型为SpeechPart的com.walker.semantics中的方法修饰符和类型方法说明voidTextSimilarEngine.registerKeyword(String[] words, SpeechPart speechPart) 向词库注册关键词voidSemanticsManager.registerKeyWord(int sceneContextId, String word, SpeechPart speechPart) 向系统注册自定义关键词。参数类型为SpeechPart的com.walker.semantics中的构造器 -
com.walker.semantics.support中SpeechPart的使用
参数类型为SpeechPart的com.walker.semantics.support中的方法修饰符和类型方法说明protected voidDefaultSemanticsManager.afterRegisterKeyWord(String text, SpeechPart speechPart) 注册自定义关键词之后,业务可回调voidAbstractTextSimilarEngine.registerKeyword(String[] words, SpeechPart speechPart) voidDefaultSemanticsManager.registerKeyWord(int sceneContextId, String word, SpeechPart speechPart)