一个轻便的对准器。
light-aligner的Python项目详细描述
光校准器
一个轻量级的双文本对齐器(目前只是英汉语)对齐,基于词对词“翻译”的相似性分数
特点
Light-weight
,资源需求低Lightning
快,也许不是{}快,但相当快 - 无需互联网
特殊依赖关系
light aligner
依赖于多导,而多导又依赖于{
安装libicu
对于Linux/OSX
例如
- Ubuntu:
sudo apt install libicu-dev
- 中央:
yum install libicu
- OSX:
brew install icu4c
然后使用poetry
或{ PyICU pycld2 Morfessor
,例如
poetry add PyICU pycld2 Morfessor
或者
^{pr2}$对于Windows
从https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyicu和{a5}(也可能是Morfessorhttps://www.lfd.uci.edu/~gohlke/pythonlibs/)为您的OS/Python版本下载并安装pyicu
和{
安装
pip install light-aligner
或者,克隆repo并使用pip
安装必要的包:
git clone git@github.com:ffreemt/light-aligner.git
cd light-aigner
pip install -r requirements.txt
或者,克隆repo并使用poetry
安装必要的包
git clone git@github.com:ffreemt/light-aligner.git
cd light-aigner
poetry install -v
light aligner
可以在Linux/OSX
中运行。实际上,github中的构建过程(与github工作流标记)是在Linux中执行的。在
用法
cd light-aligner
python -m light-aligner
您可能希望使用powershell(例如,右键单击powershell脚本run-python-m.ps1
并选择Run with Powershell
)或conemu或cmder以获得更好的视觉终端体验。在
加入qq群316287378 如果你有任何问题。群聊通常是中文,但如果需要可以切换到英文。在
- 项目
标签: