gpt4 book ai didi

c - 统计文本分析、语言建模和信息检索程序 - Rainbow

转载 作者:行者123 更新时间:2023-11-30 19:34:46 25 4
gpt4 key购买 nike

我正在尝试使用 Rainbow 库( http://www.cs.cmu.edu/~mccallum/bow/src/bow-20020213.tar.gz )来解决一个简单的问题,但无法编译 Rainbow.c 文件。

错误是

error: expected "FILENAME" or <FILENAME>

#include “bow/libbow.h”

^

./rainbow.c:23:10: fatal error: 'argp.h' file not found

#include <argp.h>

^

2 errors generated.

有什么方法可以避免生成工作编译文件。

这是之后 -

*

error: 'bow/libbow.h' file not found with <angled> include;
use "quotes" instead
#include <bow/libbow.h>
^~~~~~~~~~~~~~
"bow/libbow.h"
In file included from ./rainbow.c:22:
./bow/libbow.h:40:10: fatal error: 'malloc.h' file not found
#include <malloc.h> /* for malloc() and friends. */
^

*

如果可能的话,请花几分钟时间提供帮助,因为我需要该包来提交我选择的项目问题。

最佳答案

你编辑rainbow.c文件了吗?看起来第 22 行有 #include 行。您应该阅读https://gcc.gnu.org/onlinedocs/cpp/Search-Path.html并注意尖括号在标准包含路径(可以修改)上搜索文件。可能您需要进行一些安装。查看自述文件并确保您已遵循安装说明。我下载了你链接的弓包,并查看了里面。有一个 Rainbow.c (您显然正在尝试编译它。阅读包含的 README 文件并按照其中包含的编译/安装说明进行操作。

关于c - 统计文本分析、语言建模和信息检索程序 - Rainbow,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43423112/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com