- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试安装名为 topicmodels 的软件包在 R 中,我没有成功。这是我尝试过的...
行动:
使用 install.packages("topicmodels")
安装软件包
结果:
package ‘topicmodels’ is available as a source package but not as a binary
Warning in install.packages :
package ‘topicmodels’ is not available (for R version 3.1.0)
install.packages("/Users/my_name/Downloads/topicmodels_0.2-1.tar.gz",repos=NULL,type="source")
* installing *source* package ‘topicmodels’ ...
** package ‘topicmodels’ successfully unpacked and MD5 sums checked
** libs
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -fPIC -Wall -mtune=core2 -g -O2 -c cokus.c -o cokus.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -fPIC -Wall -mtune=core2 -g -O2 -c common.c -o common.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -fPIC -Wall -mtune=core2 -g -O2 -c ctm.c -o ctm.o
ctm.c:29:10: fatal error: 'gsl/gsl_rng.h' file not found
include gsl/gsl_rng.h
1 error generated.
make: *** [ctm.o] Error 1
ERROR: compilation failed for package ‘topicmodels’
* removing ‘/Library/Frameworks/R.framework/Versions/3.1/Resources/library/topicmodels’
Warning in install.packages :
installation of package ‘/Users/me/Downloads/topicmodels_0.2-1.tar.gz’ had non-zero exit status
Warning in untar2(tarfile, files, list, exdir, restore_times) :
using pax extended headers
ERROR: cannot extract package from ‘topicmodels.tar.gz’
最佳答案
首先你要安装gsl
.安装完成后,您可以尝试安装 R 包。您可以从 here 下载 gsl (在那里您可以选择最新版本 gsl-latest.tar.gz
)。下载后,通过执行以下操作进行安装:
gsl-1.16
)cd Downloads/gsl-1.16
./configure
make
sudo make install
fatal error: 'gsl/gsl_rng.h' file not found
,以便您可以再次尝试安装。 install.packages("PATH_TO_TOPIC_MODELS.tar.gz", repos=NULL, type="source").
关于r - 如何在 R 中安装 topicmodels 包?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24172188/
我正在尝试使用 R 中的 topicmodels 包运行 LDA。手册中给出的示例使用美联社数据并且运行良好。但是,当我在自己的数据上尝试它时,我得到的主题是文档名称。我已经将问题追溯到这样一个事实,
请耐心等待,因为我对此非常陌生,并且正在为证书类(class)的类(class)工作。 我有 .csv 数据集,我通过从 Pubmed 和 Embase 数据库检索文献计量记录获得。有 1034 行。
我有一系列文档(约 50,000 个),我已将它们转换为语料库,并使用 R 中的 topicmodels 包构建 LDA 对象。不幸的是,为了测试超过 150 个主题,需要几个小时. 到目前为止,我发
我正在尝试安装名为 topicmodels 的软件包在 R 中,我没有成功。这是我尝试过的... 行动: 使用 install.packages("topicmodels") 安装软件包 结果: pa
在 Ubuntu 14.04 上,可信: install.packages('topicmodels') 错误信息: compilation terminated. make: *** [ctm.o]
我想知道不同包的结果(因此算法)有何不同,以及是否可以以产生类似主题的方式设置参数。我特别查看了 text2vec 和 topicmodels 包。 我使用以下代码比较了使用这些包生成的 10 个主题
下面我创建了一个完整的可重现示例来计算给定 DataFrame 的主题模型。 import numpy as np import pandas as pd data = pd.DataFrame({
我无法从 topicmodels 的 LDA 函数创建可重现的结果。以他们的文档为例: library(topicmodels) set.seed(0) lda1 >" a1 " all.equal
关闭。 这个问题不符合 Stack Overflow guidelines 。它目前不接受答案。 要求我们推荐或查找工具、库或最喜欢的场外资源的问题对于 Stack Overflow 来说是偏离主题
我正在尝试使用 R 包 topicmodels 进行一些主题建模 我已经按照这些说明使用“tm”包完成了预处理 R text file and text mining...how to load da
我是一名优秀的程序员,十分优秀!