如何在C ++中使用python库? [英] how do i use python libraries in C++?

查看:186
本文介绍了如何在C ++中使用python库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在c ++中使用 nltk 库。

I want to use the nltk libraries in c++.

有没有胶水语言/机制我可以用来做这个?

Is there a glue language/mechanism I can use to do this?

原因:
我无法在c ++中进行任何严重的编程一段时间,并希望同时修改NLP概念。

Reason: I havent done any serious programming in c++ for a while and want to revise NLP concepts at the same time.

感谢

推荐答案

您也可以尝试 Boost.Python 库;其中包含此功能。这个库主要用于将C ++暴露给Python,但可以使用其他方法。

You can also try the Boost.Python library; which has this capability. This library is mainly used to expose C++ to Python, but can be used the other way around.

这篇关于如何在C ++中使用python库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆