entify-entify是一个程序,用于使用正则表达式从不同资源上的文件中提取所有实体。该软件还提供了一个界面来查找任何给定文本中的这些实体。
entif的Python项目详细描述
============================================================= entify Copyright (C) 2014 F. Brezo and Y. Rubio, i3visio =============================================================
说明:
entify是一个gplv3+软件,用于查找正则表达式 在文件夹中的一系列文件中。也可以通过其他 在任何类型的数据中查找实体的模块。
许可证:gplv3+
这是免费软件,欢迎您在 某些条件。
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
有关此问题的详细信息,请运行: python entify-launcher.py--license
安装:
不同操作系统的指令可能不同。
在Linux下
我们建议您在/var下创建一个由当前 用户例如: # You will need superuser privileges to create this folder sudo mkdir /var/i3visio # You will need to change the owner to your user to work with it safely # If your user was alice sudo chown alice:alice /var/i3visio
python 2.7下的其余安装如下: # Navigate to the destiny's folder cd /var/i3visio # Cloning the repository git clone http://github.com/i3visio/entifyentify-master cd entify-master 或 # Navigate to the destiny's folder cd /var/i3visio # Download wget http://github.com/i3visio/entify/archive/master.zip # Unzip unzip entify-master.zip cd entify-master 然后您可以继续安装。 # Superuser privileges are required so as to complete the installation. sudo python setup.py build sudo python setup.py install 之后,模块将从任何python代码中导入。你可以 如果没有错误,请键入:python -c "import entify"来检查 显示时,安装将正确执行。
用法:
要运行程序,请导航到entify master/entify/并运行: python entify-launcher.py-h用法说明如下: usage: entify.py (-r <name> [<name> ...] | -R <regular_expression> [<regular_expression> ...])[-e <sum_ext> [<sum_ext> ...]]-f <path_to_input_folder> [-o <path_to_output_folder>] [--recursive][-v <verbosity>] [-h][--version]
功能描述如下:``输入选项(一个 必需):-r[…],–regexp[…]选择要 在以下列表中查找:['all','email','md5']-r[…], –new_regexp[…]添加新的正则表达式,例如 测试目的。
输入和输出参数:配置输入和输出选项。
-E[…],–扩展名[…]摘要文件的输出扩展名(位于 至少需要一个)。-i,–将文件夹路径输入到 存储类列表(每行一个)。-o,–将文件夹路径输出到 存储结果的输出文件夹。–递归变量 告诉系统在文件夹树上执行递归搜索。-五 ,–verbose选择详细级别:0-无;1-正常(默认值); 2-调试。
关于参数:显示有关此程序的其他信息。
-h,帮助显示此帮助并存在。–version显示 程序存在。```