1.indexOf() 1 function unique(arr){ 2 var array = []; 3 for(var i = 0, len = arr.length; i < len; i++){ 4 if(array.indexOf(arr[i]) -1){ 5 array.push(a ...
分类:
编程语言 时间:
2020-07-23 09:19:56
阅读次数:
73
目录 大纲概述 数据集合 数据处理 预训练word2vec模型 一、大纲概述 文本分类这个系列将会有8篇左右文章,从github直接下载代码,从百度云下载训练数据,在pycharm上导入即可使用,包括基于word2vec预训练的文本分类,与及基于近几年的预训练模型(ELMo,BERT等)的文本分类。... ...
分类:
其他好文 时间:
2020-07-22 23:30:07
阅读次数:
176
建表时加上唯一性约束 CREATE TABLE `t_user` ( `Id` int(11) NOT NULL AUTO_INCREMENT, -- 自增 `name` varchar(18) NOT NULL unique, -- 唯一性约束 `password` varchar(18) NOT ...
分类:
数据库 时间:
2020-07-19 17:56:18
阅读次数:
146
1.创建表 --创建学生班级表 create table StuClass ( ClassId int primary key, --班级ID 主键约束 ClassName nvarchar(30) not null unique, --班级名称 非空约束 唯一约束 CreateDate datet ...
分类:
数据库 时间:
2020-07-19 16:29:23
阅读次数:
99
1 #include <iostream> 2 #include <vector> 3 #include <algorithm> 4 5 using namespace std; 6 7 int main() 8 { 9 vector<int> nums{1,3,4,6,5,3,2,4,7,5}; ...
分类:
编程语言 时间:
2020-07-19 00:53:48
阅读次数:
95
package LeetCode_1060 /** * 1060. Missing Element in Sorted Array * (Prime) * Given a sorted array A of unique numbers, find the K-th missing number s ...
分类:
其他好文 时间:
2020-07-19 00:49:27
阅读次数:
93
链接:https://leetcode-cn.com/problems/unique-binary-search-trees-ii/ 代码 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNo ...
分类:
其他好文 时间:
2020-07-18 13:39:30
阅读次数:
56
Variable Ordering for Efficient SAT Search by Analyzing Constraint-Variable Dependencies Vijay Durairaj and Priyank KallaDepartment of Electrical and ...
分类:
其他好文 时间:
2020-07-18 11:33:24
阅读次数:
75
恢复内容开始 恢复内容开始 一条sql执行的效率因执行计划的差异而影响,经常说这条sql走索引了,那条sql 全表扫了。索引是怎么走的呢,说说我了解到的几种索引走的方式。 索引的几种扫描方式 1.Index Unique Scans 索引唯一扫描2.Index Range Scans 索引范围扫描3 ...
分类:
数据库 时间:
2020-07-18 11:32:10
阅读次数:
91
链接:https://leetcode-cn.com/problems/unique-binary-search-trees/ 代码 class Solution { public: int numTrees(int n) { vector<int> f(n + 1); f[0] = 1; for ...
分类:
其他好文 时间:
2020-07-18 11:25:21
阅读次数:
56