HtmlAgilityPack是.net下的一个HTML解析类库。支持用XPath来解析HTML。这个意义不小,为什么呢?因为对于页面上的元素的xpath某些强大的浏览器能够直接获取得到,并不需要手动写。节约了大半写正则表达式的时间,当然正则表达式有时候在进一步获取的时候还需要写,但是通过xpath ...
分类:
Web程序 时间:
2020-01-08 19:23:35
阅读次数:
90
一般使用transformers做bert finetune时,经常会编写如下类似的代码: 在BertModel(BertPreTrainedModel)中,对返回值outputs的解释如下: 这里的pooler_output指的是输出序列最后一个隐层,即CLS标签。查看forward函数的源码,最 ...
分类:
其他好文 时间:
2020-01-08 18:53:03
阅读次数:
637
参数 全称 释义 说明-pl --projects Build specified reactor projects instead of all projects 选项后可跟随{groupId}:{artifactId}或者所选模块的相对路径(多个模块以逗号分隔) -am --also-make ...
分类:
其他好文 时间:
2020-01-07 17:52:36
阅读次数:
196
1.创建springboot项目2.导入jar<!--https://mvnrepository.com/artifact/io.springfox/springfox-swagger-ui--><dependency><groupId>io.springfox</groupId><artifactId>springfox-swagger
分类:
其他好文 时间:
2020-01-07 15:55:53
阅读次数:
88
Hexo+Butterfly+Github+Coding搭建个人博客 背景 之前用 "docsify" 搭建了一个简单的博客,但是docsify主题较少(也可能本人没有找到正确的设置方法⊙﹏⊙‖∣),没有自己很喜欢的主题。于是,在近期,利用空闲的时间,用 "Hexo" 重新搭建了一个 "博客" 。关 ...
分类:
其他好文 时间:
2020-01-07 00:31:17
阅读次数:
444
<! TOC "ByteBuf" "ByteBuf是什么" "ByteBuf重要API" "read、write、set、skipBytes" "mark和reset" "duplicate、slice、copy" "retain、release" "ByteBuf扩容" "ByteBuf种类" " ...
分类:
Web程序 时间:
2020-01-06 23:07:58
阅读次数:
111
/// <summary> /// IOC控制反转:正常情况下,程序开发过程中,是上端调用下端,依赖下端 /// 依赖倒置原则->上端不要依赖下端,要依赖下端的抽象 /// 上端只依赖抽象,细节交给第三方工厂来决定,这就是IOC,就是控制反转->系统架构可以更稳定,支持扩展 /// DI依赖注入:称 ...
分类:
编程语言 时间:
2020-01-06 22:57:24
阅读次数:
120
在上篇文章Spring IoC 源码分析 (基于注解) 一我们分析到,我们通过AnnotationConfigApplicationContext类传入一个包路径启动Spring之后,会首先初始化包扫描的过滤规则。那我们今天就来看下包扫描的具体过程。 还是先看下面的代码: AnnotationCon ...
分类:
编程语言 时间:
2020-01-06 09:15:17
阅读次数:
73
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root). For ...
分类:
其他好文 时间:
2020-01-05 10:02:41
阅读次数:
87
Given a binary tree, find the leftmost value in the last row of the tree. Example 1: Input: 2 / \ 1 3 Output: 1 Example 2: Input: 1 / \ 2 3 / / \ 4 5 ...
分类:
其他好文 时间:
2020-01-05 09:54:14
阅读次数:
60