latex

Markdown: How to reference an item in a numbered list, by number (like LaTeX's \ref / \label)?

时间秒杀一切 提交于 2020-04-10 07:30:06
问题 Is there any way in markdown to do the equivalent of the cross-referencing in this LaTeX snippet? (Taken from here.) \begin{enumerate} \item \label{itm:first} This is a numbered item \item Another numbered item \label{itm:second} \item \label{itm:third} Same as \ref{itm:first} \end{enumerate} Cross-referencing items \ref{itm:second} and \ref{itm:third}. This LaTeX produces 1. This is a numbered item 2. This is another numbered item 3. Same as 1 Cross-referencing items 2 and 3. That is, I

LaTeX error related to tcolorbox.sty not found

我与影子孤独终老i 提交于 2020-04-10 05:22:09
问题 I have a problem with LaTeX whenever I try to download the file in PDF. When I try to do that, it gives me the following error: ! LaTeX Error: File `tcolorbox.sty' not found. Type X to quit or <RETURN> to proceed ,or enter new name. (Default extension: sty)Enter file name:! Emergency stop.<read > \usepackage I've already downloaded the tcolorbox zip file and dragged the directory into the tex/latex tree, as said in README file, but neither that worked. Originally I used to try to download the

LaTeX error related to tcolorbox.sty not found

北慕城南 提交于 2020-04-10 05:22:05
问题 I have a problem with LaTeX whenever I try to download the file in PDF. When I try to do that, it gives me the following error: ! LaTeX Error: File `tcolorbox.sty' not found. Type X to quit or <RETURN> to proceed ,or enter new name. (Default extension: sty)Enter file name:! Emergency stop.<read > \usepackage I've already downloaded the tcolorbox zip file and dragged the directory into the tex/latex tree, as said in README file, but neither that worked. Originally I used to try to download the

Full LaTeX parser in Java

穿精又带淫゛_ 提交于 2020-04-09 22:13:41
问题 I've written small Java application to create printable flashcards for my Maths revision. At the moment, I'm using JLaTeXMath to generate the images for each side from LaTeX. The only problem is, that JLaTeXMath seems to be limited to LaTeX formula. I want to use the same program to create flashcards for other subjects such as Biology, where the questions and answers will be text based (rather than equation based) and LaTeX formula's aren't suitable for this. Are there any Java libraries that

Full LaTeX parser in Java

故事扮演 提交于 2020-04-09 22:12:16
问题 I've written small Java application to create printable flashcards for my Maths revision. At the moment, I'm using JLaTeXMath to generate the images for each side from LaTeX. The only problem is, that JLaTeXMath seems to be limited to LaTeX formula. I want to use the same program to create flashcards for other subjects such as Biology, where the questions and answers will be text based (rather than equation based) and LaTeX formula's aren't suitable for this. Are there any Java libraries that

Full LaTeX parser in Java

为君一笑 提交于 2020-04-09 22:11:27
问题 I've written small Java application to create printable flashcards for my Maths revision. At the moment, I'm using JLaTeXMath to generate the images for each side from LaTeX. The only problem is, that JLaTeXMath seems to be limited to LaTeX formula. I want to use the same program to create flashcards for other subjects such as Biology, where the questions and answers will be text based (rather than equation based) and LaTeX formula's aren't suitable for this. Are there any Java libraries that

Unity | 总结:OCR文字识别、公式识别

こ雲淡風輕ζ 提交于 2020-04-09 18:37:11
一、功能简介: 最近在做一个项目:运用OCR文字识别、公式识别、手写英文识别等AI技术,当用户批量导入图片或者PDF文件时可快速识别为可编辑文本,该项目主要功能有: 印刷体识别、手写英文识别; 公式识别:将公式转为LaTex格式; 历史记录功能; 文本查找、替换; 文本撤销、恢复; 绘制区域:进行部分区域识别; 左旋转、右旋转:导入的图片出现90°旋转时使用; 图片/文件删除(单选、全选); 识别出的图片可移动、可删除; 导出为word; 同步微信小程序数据。 二、各版本效果展示: 版本1 版本2 版本3 版本4 版本5 版本6(64位) 版本6(32位) 点赞 2 收藏 分享 文章举报 该用户还未想到好的昵称 发布了167 篇原创文章 · 获赞 24 · 访问量 9万+ 私信 关注 来源: oschina 链接: https://my.oschina.net/u/4334361/blog/3226444

贝叶斯推断之最大后验概率(MAP)

主宰稳场 提交于 2020-04-09 11:38:54
贝叶斯推断之最大后验概率(MAP) 本文详细记录贝叶斯后验概率分布的数学原理,基于贝叶斯后验概率实现一个二分类问题,谈谈我对贝叶斯推断的理解。 1. 二分类问题 给定N个样本的数据集,用 \(X\) 来表示,每个样本 \(x_n\) 有两个属性,最终属于某个分类 \(t\) $t=\left\{0,1\right\}$ $\mathbf{x_n}=\begin{pmatrix}x_{n1} \\ x_{n2} \\ \end{pmatrix}$, 假设模型参数$w=\begin{pmatrix} w_1 \\ w_2\end{pmatrix}$ $\mathbf{X}=\begin{bmatrix} x_1^T \\ x_2^T \\. \\. \\ x_n^T\end{bmatrix}$ 将样本集用用图画出来如下: 根据贝叶斯公式有: \[p(w|t,X)=\frac {p(t|X,w)p(w)} {p(t|X)} \] (公式1) \(p(w | t,X)\) 告诉我们:在已知训练样本集 \(X\) 以及这些样本的某个分类 \(t\) (这是一个监督学习,因为我们已经有了样本集 \(X\) 、以及样本集中每个样本所属的分类 \(t\) ),需要求解模型参数 \(w\) 。因此, \(w\) 是未知的,是需要根据样本通过贝叶斯概率公式来进行求解的。求得了 \(p(w|t,X)\)

HTTP ContentType

情到浓时终转凉″ 提交于 2020-04-08 22:12:24
https://tool.oschina.net/commons/ 文件扩展名 Content-Type(Mime-Type) 文件扩展名 Content-Type(Mime-Type) .*( 二进制流,不知道下载文件类型) application/octet-stream .tif image/tiff .001 application/x-001 .301 application/x-301 .323 text/h323 .906 application/x-906 .907 drawing/907 .a11 application/x-a11 .acp audio/x-mei-aac .ai application/postscript .aif audio/aiff .aifc audio/aiff .aiff audio/aiff .anv application/x-anv .asa text/asa .asf video/x-ms-asf .asp text/asp .asx video/x-ms-asf .au audio/basic .avi video/avi .awf application/vnd.adobe.workflow .biz text/xml .bmp application/x-bmp .bot application/x-bot .c4t

准确率(Accuracy), 精确率(Precision), 召回率(Recall)和F1-Measure

十年热恋 提交于 2020-04-08 17:59:25
yu Code 15 Comments 机器学习(ML),自然语言处理(NLP),信息检索(IR)等领域,评估(Evaluation)是一个必要的 工作,而其评价指标往往有如下几点:准确率(Accuracy),精确率(Precision),召回率(Recall)和F1-Measure。(注: 相对来说,IR 的 ground truth 很多时候是一个 Ordered List, 而不是一个 Bool 类型的 Unordered Collection,在都找到的情况下,排在第三名还是第四名损失并不是很大,而排在第一名和第一百名,虽然都是“找到了”,但是意义是不一样的,因此 更多可能适用于 MAP 之类评估指标。) 本文将简单介绍其中几个概念。中文中这几个评价指标翻译各有不同,所以一般情况下推荐使用英文。 现在我先假定一个具体场景作为例子。 假如某个班级有男生 80 人,女生 20 人,共计 100 人.目标是找出所有女生. 现在某人挑选出 50 个人,其中 20 人是女生,另外还错误的把30个男生也当作女生挑选出来了. 作为评估者的你需要来评估( evaluation )下他的工作 首先我们可以计算 准确率(accuracy) ,其定义是: 对于给定的测试数据集,分类器正确分类的样本数与总样本数之比。也就是损失函数是0-1损失时测试数据集上的准确率 [1] . 这样说听起来有点抽象