![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
lizzy05
这个作者很懒,什么都没留下…
展开
-
Stanfordnlp中TypeError: argument of type 'NoneType' is not iterable 问题解决方法
问题描述:用StanfordSegmenter进行中文分词,输入如下代码后报错TypeError: argument of type 'NoneType' is not iterablefrom nltk.tokenize import StanfordSegmentersegmenter = StanfordSegmenter(path_to_sihan_corpora_di...原创 2019-03-06 11:42:35 · 39321 阅读 · 0 评论 -
BFPRT算法
经典算法----BFPRT算法。1973 年, Blum 、 Floyd 、 Pratt 、 Rivest 、 Tarjan 集体出动,合写了一篇题为 “Time bounds for selection” 的论文,给出了一种在数组中选出第 k 大元素的算法,俗称"中位数之中位数算法"。依靠一种精心设计的 pivot 选取方法,该算法从理论上保证了最坏情形下的线性时间复杂度,打败了平均线性、最...原创 2019-03-21 13:12:37 · 389 阅读 · 0 评论 -
Java垃圾回收机制
转载自https://blog.csdn.net/zsuguangh/article/details/64295921. 垃圾回收的意义 在C++中,对象所占的内存在程序结束运行之前一直被占用,在明确释放之前不能分配给其它对象;而在Java中,当没有对象引用指向原先分配给某个对象的内存时,该内存便成为垃圾。JVM的一个系统级线程会自动释放该内存块。垃圾回收意味着程序不再需要的对象是"无用...转载 2019-03-22 11:13:52 · 214 阅读 · 0 评论