上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 24 下一页
摘要: from ltp import LTP 文档说明 #http://www.ltp-cloud.com/intro#dp_howltp = LTP() # 默认加载 Small 模型 https://github.com/HIT-SCIR/ltp/tree/master/examples 阅读全文
posted @ 2021-01-11 09:37 cup_leo 阅读(593) 评论(0) 推荐(0)
摘要: 1.网址:https://huggingface.co/bert-base-chinese?text=%E5%AE%89%E5%80%8D%E6%98%AF%E5%8F%AA%5BMASK%5D%E7%8B%97 2.下载: 下载 在这里插入图片描述 阅读全文
posted @ 2021-01-07 11:08 cup_leo 阅读(4782) 评论(0) 推荐(0)
摘要: https://zhuanlan.zhihu.com/p/80385615 pip install smoothnlp from smoothnlp.algorithm.phrase import extract_phrase new_phrases = extract_phrase(corpus) 阅读全文
posted @ 2020-12-25 15:57 cup_leo 阅读(579) 评论(1) 推荐(0)
摘要: from pyDes import des, CBC, PAD_PKCS5 import binascii # 秘钥 KEY = '这里使用8个字符秘钥' def des_encrypt(s): """ DES 加密 :param s: 原始字符串 :return: 加密后字符串,16进制 """ 阅读全文
posted @ 2020-12-21 14:28 cup_leo 阅读(327) 评论(0) 推荐(0)
摘要: %env Get, set, or list environment variables. Usage: %env: lists all environment variables/values %env var: get value for var %env var val: set value 阅读全文
posted @ 2020-12-17 15:42 cup_leo 阅读(464) 评论(0) 推荐(0)
摘要: viterbi过程1.hmm类似。 状态转移,发射概率2.逐次计算每个序列节点的所有状态下的概率值,最大概率值对应的index。3.概率值的计算,上一个节点的概率值*转移概率+当前概率值。4.最后取出最大的一个值对应的indexes 难点: 理解viterbi的核心点,在于每个时间步都保留每一个可视 阅读全文
posted @ 2020-12-16 14:56 cup_leo 阅读(656) 评论(0) 推荐(0)
摘要: #找出target中包含字符1的列 y = test[test['target'].str.contains('1')] 报错:ValueError: cannot index with vector containing NA / NaN values 解决方法: #找出target中包含字符1的 阅读全文
posted @ 2020-11-11 17:06 cup_leo 阅读(1033) 评论(0) 推荐(0)
摘要: query_phone = { "size":100, "query":{"nested": { "path":"contact", "query" : {"term":{ "contact.customer_number.keyword":'ZiihANGooRDG2K7ME8Fvzg=='} } 阅读全文
posted @ 2020-11-10 15:06 cup_leo 阅读(2964) 评论(0) 推荐(0)
摘要: 我找到了两种方法来做到这一点,都涉及到monkey补丁IPython。 #1。这将只输出异常类型和消息,但在输出区域以红色突出显示: from __future__ import print_function # for python 2 compatibility import sys ipyth 阅读全文
posted @ 2020-11-05 09:41 cup_leo 阅读(130) 评论(0) 推荐(0)
摘要: 1、python 操作 ElasticSearch 入门 连接地址 阅读全文
posted @ 2020-11-04 15:16 cup_leo 阅读(79) 评论(0) 推荐(0)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 24 下一页