henry
henry
pTraderSpi := goctp.NewDirectorCThostFtdcTraderSpi(&GoCThostFtdcTraderSpi{Client: CTP}) CTP.TraderApi.RegisterSpi(pTraderSpi) // 注册回调接口,派生自回调接口类的实例 CTP.TraderApi.SubscribePublicTopic(0/*THOST_TERT_RESTART*/) //订阅公共流,要在init之前 CTP.TraderApi.SubscribePrivateTopic(0/*THOST_TERT_RESTART*/) CTP.TraderApi.RegisterFront(CTP.TraderFront) // 注册前置机器网络地址 CTP.TraderApi.Init() // 初始化运行环境,只有被调用后,接口才开始工作 req := goctp.NewCThostFtdcReqUserLoginField() //这段代码是自己添加的 req.SetBrokerID(CTP.BrokerID) req.SetUserID(CTP.InvestorID) req.SetPassword(CTP.Password) i := CTP.TraderApi.ReqUserLogin(req,CTP.GetTraderRequestID()) fmt.Println("用户主动注册返回结果:",i) //返回值为-1,说明未连接成功,十分不解 CTP.TraderApi.Join() //...
Author uses span-detecting part to find all the mentions, why not to use the pos-tag model to find the mentions? I think that maybe more efficient and accurate.Maybe my idea...
This project seems not to run successfully, after I see the other issues. Can anybody tell the truth?
### 请提出你的问题 环境: windows x64 cpu环境 python3.7 paddlepaddle==2.5.0 paddlenlp==2.6.0rc0 ``` import paddle from paddlenlp.transformers import ( ChatGLMConfig, ChatGLMForConditionalGeneration, ChatGLMTokenizer, ) #读取原始的chatglm-6b模型 model_name_or_path = r'E:\NLP\chatglm-6b-int4' # 使用该路径会自动下载和加载模型 # model_name_or_path = 'data/data217141'...