自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(48)
  • 收藏
  • 关注

原创 转:详解Transition-based Dependency parser基于转移的依存句法解析器

最近在做依存句法分析,一直要做,CSDN之前的一篇部分图片缺失,这里贴出原文。推荐paperhttp://aclweb.org/anthology/C18-1047Transition-based Neural RST Parsing with Implicit Syntax FeaturesNan Yu, Meishan Zhang and Guohong Fu...

2019-06-19 16:21:09 1142 2

原创 用于命名实体识别(NER)和实体识别任务的语料库集合

https://www.ctolib.com/amp/juand-r-entity-recognition-datasets.html

2019-05-08 18:30:21 5264 1

原创 字幕网站

https://www.opensubtitles.org/zh

2018-05-20 11:42:14 4056

转载 Python中的join()函数的用法

https://www.cnblogs.com/jsplyy/p/5634640.html

2018-05-15 11:40:43 687

转载 正则表达式的语法规则

转自:https://blog.csdn.net/virus2014/article/details/51217027一、行定位符(^和$)  行定位符就是用来描述字串的边界。“^”表示行的开始;“$”表示行的结尾。如:  ^tm : 该表达式表示要匹配字串tm的开始位置是行头,如tm equal Tomorrow Moon就可以匹配  tm$ : 该表达式表示要匹配字串tm的位置是行尾,Tomo...

2018-05-15 11:07:40 274

转载 python中__name__

__name__是指示当前py文件调用方式的方法。如果它等于"__main__"就表示是直接执行,如果不是,则用来被别的文件调用,这个时候if就为False,那么它就不会执行最外层的代码了。比如你有个Python文件里面def XXXX(): #bodyprint "asdf"这样的话,就算是别的地方导入这个文件,要调用这个XXXX函数,也会执行print "asdf",因为他是最外层代码,...

2018-04-25 14:27:58 228

转载 [学习笔记] python爬虫进阶BeautifulSoup 超详细的find_all()和find

原文:http://bbs.fishc.com/thread-90638-1-1.html超详细的find_all()和find推荐阅读:BeautifulSoup节点 在之前的帖子里我们已经使用过了find_all,不过对于find_all,有的东西还得说明一下 这就是find_all和find,别急,我们慢慢来,熟练掌握find_all和find,对你写爬虫将大有帮助!find_all( na...

2018-04-25 10:17:03 18151

原创 win10 64位python3.6 下安装scrapy

https://www.cnblogs.com/liuliliuli2017/p/6746440.html最终使用anaconda安装 真的简单 别的都试了都没有成功。。。建议使用anaconda  真的很简单。具体见第一行URL 只需一行代码。。。...

2018-04-24 15:09:51 282

转载 数据库事务中的隔离级别和锁+spring Transactional注解

源:https://www.cnblogs.com/yldIndex/p/spring_Transactional.html数据库事务中的隔离级别和锁数据库事务在后端开发中占非常重要的地位,如何确保数据读取的正确性、安全性也是我们需要研究的问题。ACID首先总结一下数据库事务正确执行的四个要素(ACID):原子性(Atomicity):即事务是不可分割的最小工作单元,事务内的操作要么全做,要么全不...

2018-03-22 23:00:57 202

转载 最短路径问题---Dijkstra算法详解

前言 Nobody can go back and start a new beginning,but anyone can start today and make a new ending. Name:Willam Time:2017/3/81、最短路径问题介绍问题解释: 从图中的某个顶点出发到达另外一个顶点的所经过的边的权重和最小的一条路径,称为最短路径解决问题的算法:迪杰斯特拉算法(Dij...

2018-03-22 19:48:12 4512

转载 基于α-β剪枝算法的智能五子棋

一、基本介绍 游戏界面:使用了Java Swing进行开发,如图所示。  游戏步骤:1. 先设置游戏的参数,可以选择模式(双人、单人、双机),智能(估值函数、估值函数+搜索树),搜索树(层数、每层节点),再开始游戏;2. 在棋盘上单击鼠标左键,落下棋子;3. 在棋盘上单击鼠标右键,查看该点的估值;4. 可以显示落子顺序和悔棋;5. 使用搜索树AI时,控制台显示搜索过程;6. 某方胜利后,游戏结束。...

2018-03-22 19:38:59 1617

原创 13-1

#include<stdio.h>#include<stdlib.h>#include<string.h>#include<math.h>int gongyueshu(int m,int n)//辗转相除法求最大公约数! 不能自己写, 不然不精确, 有小数点也算能除尽{ int temp; while(n%m!=0) { tem...

2018-03-21 08:18:22 178

转载 字符串匹配的KMP算法

字符串匹配的KMP算法作者: 阮一峰日期: 2013年5月 1日字符串匹配是计算机的基本任务之一。举例来说,有一个字符串"BBC ABCDAB ABCDABCDABDE",我想知道,里面是否包含另一个字符串"ABCDABD"?许多算法可以完成这个任务,Knuth-Morris-Pratt算法(简称KMP)是最常用的之一。它以三个发明者命名,起头的那个K就是著名科学家Donald Knuth。这种算...

2018-03-19 20:38:02 181

转载 C++中的STL中map用法详解

Map是STL的一个关联容器,它提供一对一(其中第一个可以称为关键字,每个关键字只能在map中出现一次,第二个可能称为该关键字的值)的数据 处理能力,由于这个特性,它完成有可能在我们处理一对一数据的时候,在编程上提供快速通道。这里说下map内部数据的组织,map内部自建一颗红黑树(一 种非严格意义上的平衡二叉树),这颗树具有对数据自动排序的功能,所以在map内部所有的数据都是有序的,后边我们会见识...

2018-03-19 17:40:23 175

原创 C语言strlwr和tolower比较 strupr和toupper(两个P...)

#include<stdio.h>#include<stdlib.h>#include<string.h>#include<math.h>#include<ctype.h>int main(){ char str1[100],str2[100]; gets(str1); gets(str2); strlwr(str1...

2018-03-19 17:16:32 1756

原创 切分最标准写法

//qiefen开始 最标准写法如下所示/* for(i=0;i<len;i++) { while(str[i]!='{') i++; l=i;//起点 break; } for(i=l;i<len;i++) { while(IsWord(str[i])) { P[j].str[k++]=str[i++]; } if(!IsWord(...

2018-03-18 22:08:22 901

转载 优先队列priority_queue详解

优先队列引入优先队列是一种特殊的队列,在学习堆排序的时候就有所了解,点“击”查看。那么优先队列是什么呢? 说白了,就是一种功能强大的队列。如果不太清楚队列,可以看看我这篇博客。它的功能强大在哪里呢? 四个字:自动排序。优先队列的头文件&&声明首先,你需要#include<queue>using namespace std;12这两个头文件。其次,一个优先队列声明的基本...

2018-03-18 11:55:30 189

原创 VC6.0中scanf回车符会影响后面gets问题

int main(){ int i;//记录行数 int n;//排版位置号 char ch; char str[SIZE][WORD];//演职员信息 scanf("%d",&n); ch=getchar();//接受缓冲区中scanf带来的回车符 for(i=0;i<SIZE;i++) { gets(str[i]); if(strlen(str[i]...

2018-03-16 11:12:28 372

原创 C语言判断字符串为空

14年排版问题部分代码for(i=0;i<SIZE;i++)     { gets(str[i]); if(strlen(str[i])==0) //好!!! 判断字符串为空串 用这种好! // if(str[i][0]=='\0') //避免!!! 尽量避免用这种,可能会crash! // if(strcmp(str[i],'\0')==0) //错误!!! ...

2018-03-16 11:08:33 3528

原创 C语言输出问题

C语言默认右对齐(%0nd);n-控制输出宽度8;0-左边补足0(不写0默认用空格补足)1. #include<stdio.h> 2. void main() 3. { 4. int num; 5. printf("Please input a number: "); 6. scanf("%d",&num); 7. printf("%...

2018-03-16 11:06:06 692

原创 10-3

#include<stdio.h>#include<stdlib.h>#include<string.h>#include<math.h>#include<ctype.h>int main(){ char a[100],b[100]; while(1) { gets(a); gets(b); if(strc...

2018-03-15 11:58:56 203

原创 10-2

#include<stdio.h>#include<stdlib.h>#include<string.h>#include<math.h>#include<ctype.h>int main(){ char str1[200],str2[200],str[400]; gets(str1); gets(str2); in...

2018-03-15 11:58:16 155

原创 10-1

#include<stdio.h>#include<stdlib.h>#include<string.h>#include<math.h>#include<ctype.h>#define PI 3.14159265int main(){ int i=1; double x,x2,result=1,tmp1=1,tmp...

2018-03-15 11:57:45 181

原创 09-3

#include<stdio.h>#include<stdlib.h>#include<string.h>#include<math.h>#include<ctype.h>//文件处理int main(){ char str[100],b[100];//str表示输入要删除的字符串 gets(str); int le...

2018-03-15 11:57:14 171

原创 09-2

#include<stdio.h>#include<stdlib.h>#include<string.h>#include<math.h>#include<ctype.h>struct node{ int val;//value int pos;//position 记录输入时的位置 int rank;//顺序}a[...

2018-03-15 11:56:42 126

原创 09-1

#include<stdio.h>#include<stdlib.h>#include<string.h>#include<math.h>#include<ctype.h>int main(){ double x,n; while(scanf("%lf%lf",&x,&n)!=EOF) { do

2018-03-15 11:56:10 141

原创 08-2

#include<stdio.h>#include<stdlib.h>#include<string.h>#include<math.h>#include<ctype.h>/*struct node{ int row; int col; int val;}m1[9][9],m2[9][9];*/void judg...

2018-03-15 11:55:43 146

原创 08-1

#include<stdio.h>#include<stdlib.h>#include<string.h>#include<math.h>#include<ctype.h>int main(){ int n; while(scanf("%d",&n)!=EOF) { //flag表示有没有结果 记录结..

2018-03-15 11:55:05 154

原创 07-1

#include<stdio.h>#include<stdlib.h>#include<string.h>#include<math.h>#include<ctype.h>#define SIZE 300int main(){ char str[SIZE]; char ch; int i=0; while((ch...

2018-03-15 11:54:33 167

原创 08-3

scanf输入后那个回车被gets(str)接收了,所以下次遇到gets就不再等待你输入,可以用getchar()把scanf输入后的回车接收就好了。 我运行过的,给最佳答案哦!!!!!!!就是for中用到gets时 前面如果有scanf过 要char ch=getchar()把scanf的回车符回收 不然运行出错的#include<stdio.h>#include<stdl...

2018-03-14 20:53:27 114

原创 17-1

#include<stdio.h>struct number{ int x;//x表示输入的数 int y;//y表示x的输入序号}array[100000];void bubbleSort(number data[], int n) { //C语言子函数要写在前面 不然就是预定义一下 int i,j,temp1,temp2;//冒泡略加修改,因为是结构体...

2018-03-13 15:48:01 158

原创 11-3

题目给定文件filein.txt按照要求输出fileout.txt. 输入:无空格的字符串 输出:将filein.txt删除输入的字符串(不区分大小写),输出至fileout.txt。每行中的空格全部提前至行首。#include<stdio.h>#include<stdlib.h>#include<string.h>#include<math.h&g...

2018-03-07 22:32:22 262

原创 11-2

#include<stdio.h>#include<stdlib.h>#include<string.h>#include<math.h>#include<ctype.h>#define SIZE 20struct node{ int row;//行 //编完发现没用上。。。 int col;...

2018-03-07 21:53:12 202

原创 11-1

#include<stdio.h>#include<stdlib.h>#include<string.h>#include<math.h>#include<ctype.h>struct node{ int v;//保留输入的数 1<=m<n<=20000 int flag;//剪枝标志 遍历了的就不遍历...

2018-03-07 21:14:32 183

原创 12-3

//代码很不完善 比如若果if, while , for前面有空格也不会判断为关键字,输入时必须前面不能有空格,因为int if=0中if不是关键字,所以有缺陷...#include<stdio.h>#include<stdlib.h>#include<string.h>#include<ctype.h>#include<math.h&...

2018-03-07 18:19:57 284

原创 12-2

#include<stdio.h>#include<stdlib.h>#include<string.h>#include<math.h>#include<ctype.h>struct node{ int lmark,rmark,umark,dmark;//矩阵中每个数它的上下左右有没有1的标记 有则1 无则0 初始位0...

2018-03-07 10:25:26 174

原创 12-1

#include<stdio.h>#include<stdlib.h>#include<math.h>#include<string.h>#include<ctype.h>int main(){ int i,j;//用于循环 int n;//输出n while(scanf("%d",&n)!=EOF) { ..

2018-03-07 09:38:09 277

转载 17-3难

#include<stdio.h>#include<stdlib.h>#include<string.h>#define NAMESIZE 20typedef struct TreeNode{ char name[NAMESIZE]; //自己的名字 int gradation; //自己的辈分...

2018-03-06 21:32:49 165

转载 15-3

#include<stdio.h>#include<stdlib.h>#include<string.h>#include<ctype.h>#define MAXSIZE 10000#define WORDSIZE 20bool IsWord(char c); ...

2018-03-06 19:25:08 200

转载 14-2

题目描述: 输入一个19*19的矩阵,只包含数字0、1、2,表示两人下五子棋的棋牌状态,1题目描述: 输入一个19*19的矩阵,只包含数字0、1、2,表示两人下五子棋的棋牌状态,1、2分别表示两人的棋子,0表示空格。要求判断当前状态下是否有人获胜(横向、竖向或者斜线方向连成5个同色棋子)。题目说明输入样例保证每条线上至多只有连续5个同色棋子,并且保证至多只有1人获胜。如果有人获胜,输出获胜者(1...

2018-03-06 14:44:59 221

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除