摘要: 首先使用bert获取词向量bert-as-service 1.安装Bert-as-Service pip install bert-serving-server # server pip install bert-serving-client # client, independent of `be 阅读全文
posted @ 2021-05-30 09:02 z974890869 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 记录下学习过NLP,就是个作业草稿 本次选取论文[1]《Knowledge Graph Embedding Based Question Answering》 论文代码网址: https://github.com/xhuang31/KEQA_WSDM19 概念介绍 Simple Question:I 阅读全文
posted @ 2021-05-27 19:57 z974890869 阅读(631) 评论(2) 推荐(2) 编辑
摘要: 接口与实现分离 阅读全文
posted @ 2020-12-19 15:32 z974890869 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 1 //provision_21: Don't try to return a reference when you must return an object 2 //static :不能比较 3 #include<iostream> 4 class Rational 5 { 6 friend c 阅读全文
posted @ 2020-12-19 10:35 z974890869 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 1 //provision_7:Declare destructors virtal in polymorphic base classes 2 /* 3 只有当class 内含有至少一个virtual function 才为它声明virtual destructor 4 不声明 virtual:d 阅读全文
posted @ 2020-12-17 09:47 z974890869 阅读(75) 评论(0) 推荐(0) 编辑
摘要: //条款1 用const,enum,inline 替换#define //1 const 替换 #define 常量 /* * 对于浮点数,const double 代码小 * 在class内不能提供封装性 * #defien函数用 * template<typename> * inline dec 阅读全文
posted @ 2020-12-16 09:56 z974890869 阅读(52) 评论(0) 推荐(0) 编辑
摘要: c++的小项目来源地址 还有很多能修改的地方(有时间再改吧) 缺少继承的构造函数相关知识点 有点不足 缺少多态继承 放个main其他打包(看来要学习使用github) 1 #include<iostream> 2 #include<memory> 3 #include"orderFile.h" 4 阅读全文
posted @ 2020-12-14 21:45 z974890869 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 红黑树 总的来说 掌握思想就好:细节没记住 //算法导论书中的else表示case3要改成具体情况:还有不存在的情况要跳过//例如:else = else if(z == z.p.left) 知识点: 1、指针比较地址 :z->right == nil *(z->right )== *nil 报错: 阅读全文
posted @ 2020-11-22 22:31 z974890869 阅读(129) 评论(0) 推荐(0) 编辑
摘要: Wiki:二叉查找树(英语:Binary Search Tree),也称为二叉搜索树、有序二叉树(ordered binary tree)或排序二叉树(sorted binary tree),是指一棵空树或者具有下列性质的二叉树: 若任意节点的左子树不空,则左子树上所有节点的值均小于它的根节点的值; 阅读全文
posted @ 2020-11-07 12:51 z974890869 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 贪吃蛇GreedySnake(转载) 如果《c++ prime 5th》 课后程序都自己敲一遍:这个程序(没有继承)很好理解 一些window API 检测输入什么的 跳过也行 用一个controller 类来总控制 :整个游戏其实就是一个无穷的循环,直到退出游戏时退出循环。我们暂且将这个循环称为一 阅读全文
posted @ 2020-10-29 16:26 z974890869 阅读(59) 评论(0) 推荐(0) 编辑