我可以从Googlefine调用外部* python *函数吗? [英] Can I call external *python* functions from google refine?
问题描述
我正在调查Google精简程序,以加快我的一些数据处理速度–在本周之前从未使用过它,但是我很喜欢我看到的很多东西.
到目前为止,我最大的问题是是否可以从Refine调用外部python函数.我知道您可以在内部调用jython,但这不能提供对基于C的python库(例如lxml)的访问,而且我想集成其他地方的脚本,而不会产生大量复制粘贴或重写麻烦./p>
在优化"中有哪些选项可以执行此操作?我愿意发挥创造力-我只想要一个稳定,可重用的解决方案.
作为 Google完善Wiki 说:
lxml在Jython中不起作用,因为lxml具有CPython(常规Python)的C绑定,因此在仅Jython/Java的Refine中不起作用,并且没有内置的CPython解释器
但是您可以尝试 Google Refine Python客户端库来创建项目并处理您的数据以编程方式.
I'm investigating Google refine to speed up some of my data work -- never used it before this week, but I like a lot of what I see.
My biggest question so far is whether it's possible to call external python functions from Refine. I know you can call jython internally, but that doesn't provide access to C-based python libraries (e.g. lxml), and I have scripts elsewhere that I'd like to integrate, without lots of copy-paste or rewrite hassle.
What options are there for doing this in Refine? I'm willing to get creative -- I just want a stable, re-usable solution.
As Google Refine Wiki says:
lxml will NOT work in Jython, since lxml has C bindings for CPython (regular Python), hence will not work in Refine which is Jython / Java only, and has no CPython interpreter built-in
But you can try Google Refine Python Client Library to create projects and manipulate your data programmatically.
这篇关于我可以从Googlefine调用外部* python *函数吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!