类 NluInterceptor

    • 构造器详细资料

      • NluInterceptor

        public NluInterceptor()
    • 方法详细资料

      • customIntercept

        public abstract java.lang.String customIntercept​(java.lang.String layer,
                                                         java.lang.String flowType,
                                                         org.json.JSONObject custom,
                                                         java.lang.String asrResult)
        自定义拦截处理逻辑
        参数:
        layer - sdk 层级,如:IInterceptor.Layer
        flowType - 边界流向类型,取值:IInterceptor.FlowType
        custom - 自定义参数
        返回:
        String 返回需要修改的 NLU 结果