- 博客(67)
- 收藏
- 关注
原创 org.yaml.snakeyaml.scanner.ScannerException: mapping values are not allowed here in ‘reader‘, line
Caused by: org.yaml.snakeyaml.scanner.ScannerException: mapping values are not allowed here在这里要了解yml的语法这里是缩进的问题!!!修改后:问题就解决啦。
2022-07-04 17:05:23
280
原创 pytorch模型训练时出现loss=inf现象
参看了一些博主写的文章,开始以为是学习率的问题,将学习率改为0,还是INF,由此可知不是学习率问题。之后注意到在自己构造的loss中用到了log,所以在log(*)括号中添加了一个bias,取值为1e-5,就解决了。参考:https://blog.csdn.net/wilbur520/article/details/115335402https://wenku.baidu.com/view/323cede25bf5f61fb7360b4c2e3f5727a5e924aa.html...
2022-06-08 09:37:44
887
原创 Pycharm无法识别自己写的包的解决办法Unresolved reference ‘XXX‘
错误:Unresolved reference ‘embedding’将你需要引用的文件夹的上级目录标记为:Sources Root假设目录结构如下,则应该将src文件夹标记为Sources Root,而不是将embedding文件夹标记为Sources Root。具体操作:点击Mark Directory as–>Sources Root参考:https://blog.csdn.net/LMFranK/article/details/101161431...
2022-05-04 15:47:47
1040
原创 SpringBoot集成Swagger2
这里写目录标题1. swagger整合步骤1.1. 引入swagger依赖1.2. 在主程序类名上使用@EnableSwagger注解启用1.3. 启动项目 访问swagger首页2. swagger的基础注解介绍2.2. 代码中添加swagger注解2.3. 实体类接口文档2.4.模块分组现如今,前后端分离已经逐渐成为互联网项目一种标准的开发方式,前端与后端交给不同的人员开发,但是项目开发中的沟通成本也随之升高,这部分沟通成本主要在于前端开发人员与后端开发人员对WebAPI接口的沟通,Swagger
2022-03-08 10:46:41
2770
原创 RabbitMQ
这里写目录标题1. RabbitMQ1.1. 搜索与商品服务的问题1.2. 消息队列(MQ)1.2.1. 什么是消息队列1.2.2. AMQP和JMS1.2.3. 常见MQ产品1.2.4. RabbitMQ1.3. 下载和安装1.3.1. 下载1.3.2. 安装1. docker中安装2. linux中安装2.1 安装Erlang、Socat、RabbitMQ2.2 启用管理插件2.3 RabbitMQ启停命令2.4 查看进程1.3.3. 测试1.4. 管理界面1
2022-03-06 21:38:36
270
原创 Elasticsearch
Elasticsearch1. 了解搜索技术1.1. 什么是搜索1.2. 新业务需求1.3. 搜索引擎1.4. 倒排索引1.5. 认识lucene1.6. 什么是全文检索2. elasticsearch2.1. elastic2.2. elasticsearch2.3. 下载2.4. 安装elasticsearch2.4.1. 安装2.4.2. 配置elasticsearch2.4.3. 重启2.4.4. 测试2.4.3. cluster
2022-03-04 22:30:16
2334
1
原创 Elasticsearch启动报错13827:Initial heap size set to a larger value than the maximum heap size
Elasticsearch启动报错13827:Initial heap size set to a larger value than the maximum heap size错误原因:修改jvm.options的时候,修改elasticsearch默认占用内存的时候两个值不相等这两个值必须相等
2022-03-04 16:05:23
3336
原创 Docker
Docker1. 概述1.1. 现实问题1.2. 虚拟机技术1.3. Linux 容器1.4. docker介绍1.5. docker的优势2. 下载及安装2.1. 环境要求2.2. 安装2.3. 基本概念2.4. 配置镜像加速2.4.1. 获取阿里镜像地址2.4.2. centos7配置镜像地址2.5. docker run hello-world2.6. 再谈底层原理3. 常用命令3.1. 基础命令3.2. 镜像命令3.2.1. 查询本
2022-03-03 22:08:46
2464
原创 Error creating bean with name ‘ds1-sentinel-nacos-datasource‘:
错误:org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘ds1-sentinel-nacos-datasource’: FactoryBean threw exception on object creation; nested exception is java.lang.NullPointerExceptionat org.springframework.beans.fact
2022-02-18 22:24:21
2764
1
原创 SpringCloud
springcloud1. springcloud简介2.springcloud-helloworld案例1. 电影系统注册中心2. 服务提供者-movie3. 服务消费者-user4. 服务器消费者整合Ribbon5. 服务器消费者整合Feign6. ribbon整合hystrix7. feign整合hystrix8. actuator数据流监控9. spring-gateway网关9.1 springcloud-gateway简介9.2 为helloworld的分布式系统创建一个网关项目9.3 配置网关
2022-02-16 23:24:50
361
原创 org.thymeleaf.exceptions.TemplateInputException: Error resolving template [hello scope], template mi
org.thymeleaf.exceptions.TemplateInputException: Error resolving template [hello scope], template might not exist or might not be accessible by any of the configured Template Resolversat org.thymeleaf.engine.TemplateManager.resolveTemplate(TemplateManage.
2022-02-09 20:40:17
556
原创 springboot
SpringBoot1. springboot简介2. 本地maven方式创建springboot项目3. springboot场景启动器原理4. 联网创建springboot项目5. springboot启动+自动配置原理5.1 springboot场景启动器5.2 springboot项目依赖的jar包的版本管理5.3 项目自动配置如何实现的6. springboot-配置文件6.1 pplication.properties6.2 application-后缀.yml7. springboot-ssm
2022-02-08 20:40:49
762
原创 Failed to instantiate [javax.activation.DataSource]com.alibaba.druid.pool.DruidDataSource cannot be
错误:Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.activation.DataSource]: Factory method ‘getDruidDataSource’ threw exception; nested exception is java.lang.ClassCastException: com.alibaba.druid.pool.DruidDat
2022-02-07 22:42:01
1966
原创 Field adminMapper in com.atguigu.ssm.service.impl.AdminServiceimpl required a bean of type ‘com.atgu
Description:Field adminMapper in com.atguigu.ssm.service.impl.AdminServiceimpl required a bean of type ‘com.atguigu.ssm.mapper.TAdminMapper’ that could not be found.The injection point has the following annotations:- @org.springframework.beans.factory.a
2022-02-07 17:31:44
1995
原创 ‘netstst‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件。
在系统环境变量的用户变量的path下加上C:\Windows\System32就可以了
2022-02-06 21:21:00
1296
原创 Identify and stop the process that‘s listening on port 8080 or configure this application to listen
1.打开cmd,输入netstat -ano2.找到8080端口号对应的PID3.在任务管理器找到PID是4412的进程结束该进程。
2022-02-06 21:16:56
840
原创 Sample larger than population or is negative
原文的出错地方为:return {train_label: random.sample(sentences, nc) for train_label, sentences in train_label_to_sentences.items()}出错的地方是 random.sample(sentences, nc) ,就是sentence中可能没有nc个句子以供随机选择。自己选取的数据集是一个高度不平衡的数据集,有的类别含有的训练数量只有个位数。...
2022-01-28 16:19:20
1175
原创 IndexError: string index out of range
IndexError: string index out of range今天跑代码时候发现这个错误,奇怪的是代码跑昨天的数据集还是没有问题的,今天换了一个数据集就会报这个错误。1,不是网上那种索引溢出的问题,比如索引是0-9,你却搜索的是102,看了一下自己完整的错误,在索引0的时候就错了,则有可能是数据集中存在空字符串导致。将数据集中空字符串删除,则问题解决。if clean_line[0] == ' ': IndexError: string index out of range...
2022-01-27 20:42:09
8439
原创 str和list相互转换,在字典中添加元素,交换字典中键值对的位置
str和list相互转换:https://www.jb51.net/article/142644.htm在字典中添加元素:https://www.jb51.net/article/196873.htm
2022-01-07 23:38:20
364
原创 KL-Divergence,三元组损失
KL Divergence:https://zhuanlan.zhihu.com/p/95687720三元组损失:https://blog.csdn.net/zenglaoshi/article/details/106928204
2022-01-06 16:57:19
98
原创 Resource wordnet not found. ; [nltk_data] Error loading wordnet: <urlopen error [Errno 11004]
nltk_data --wordnet1. Resource wordnet not found.Please use the NLTK Downloader to obtain the resource:2. [nltk_data] Error loading wordnet: 1. Resource wordnet not found.Please use the NLTK Downloader to obtain the resource:错误1:Resource wordnet not foun
2022-01-03 21:13:32
4097
5
原创 今日问题待解决(2022.1.3)
1.Some weights of the model checkpoint at bert-base-uncased were not used when initializing BertModel:2.BertModel.from_pretrained(‘bert-base-uncased’)3.PyTorch中的ModuleList和Sequential参考:https://zhuanlan.zhihu.com/p/75206669nn.Sequential:1 nn.Sequential
2022-01-03 17:23:35
1186
原创 error: Microsoft Visual C++ 14.0 is required. Get it with “Build Tools for Visual Studio“: https://v
安装fasttext首先利用pip install fasttext出现错误error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/此时可以利用安装组件进行安装:在此网址找到fasttext注意看版本cp后面表示Python的版本 amd后面表示操作系统位数(我的是Python3.
2022-01-03 16:33:09
1560
原创 np.random.beta();np.random.permutation()
只用来记录自己学习np.random.beta:参考https://www.cnblogs.com/kuangmeng/p/15727345.htmlnumpy.random.beta(a,b,size=None)从β分布中提取样本。β分布是狄里克莱分布的一个特例,与伽马分布有关。在这里我们将参数(3个参数)设置为32 32 3参数1:32次正面。参数2:32次反面。参数3:总共进行3次。 按照惯例来说,我们正反面的次数一致的话,概率应该也是0.5。 在这里我们可以看到β分布下,概率值是0.
2022-01-01 21:57:34
4826
原创 Unresolved reference ‘utils‘
from utils import common我在导入自己写的包的.py文件的时候,报错:Unresolved reference ‘utils’首先,我按照网上百度的:在pycharm中设置source路径file–>setting–>project:server–>project structure-->选择python(工程名)-->点击Sources图标-->Apply即可将放package的文件夹设置为source,这样import的模块类等,就是通
2021-12-31 15:20:50
3613
4
原创 anaconda创建虚拟环境
参考:https://www.cnblogs.com/memento2233/p/10357681.html指定路径:https://blog.csdn.net/learn_tech/article/details/80748450
2021-12-21 21:56:17
604
原创 ModuleNotFoundError: No module named ‘transformers.modeling_gpt2‘
运行代码发现错误如下:解决:将导入模块from transformers.modeling_gpt2 import GPT2LMHeadModel改为:from transformers.models.gpt2.modeling_gpt2 import GPT2LMHeadModel
2021-12-21 14:33:26
5230
1
原创 第二届低资源 NLP 深度学习方法研讨会论文集 (DeepLo 2019)
1、Unlearn Dataset Bias in Natural Language Inference by Fitting the Residual2、From Monolingual to Multilingual FAQ Assistant using Multilingual Co-training3、Domain Adaptation with BERT-based Domain Classification and Data Selection课程学习4、Deep Bidirect
2021-11-09 17:30:03
790
原创 条件随机场CRF
条件随机场CRF1、背景介绍2、HMM VS MEMM3、MEMM VS CRF4、CRF模型-概率密度函数的参数形式5、CRF模型-概率密度函数的向量形式6、CRF模型-要解决的问题7、CRF模型-Inference 边缘概率计算8、CRF模型-Learning 参数估计视频:https://www.bilibili.com/video/BV19t411R7QU1、背景介绍2、HMM VS MEMM3、MEMM VS CRF4、CRF模型-概率密度函数的参数形式5、CRF模型-概率密度函数的向
2021-10-10 22:06:45
66
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人