预处理 NIKL(National Institute of Korean Language) 语料库文件
项目描述
NIKL
국립국어원(National I nstitute of Korean Language ) 언어정보나눔터: 말뭉치 파일 전처리 코드
安装
- 皮皮
pip install nikl
- 源代码
git clone https://github.com/study-artificial-intelligence/nikl.git cd nikl python setup.py install
要求
- beautifulsoup4 (
pip install beautifulspul4로 설치)
入门
- 변환을 원하는 국립국어원 언어정보나눔센터의 말뭉치 사전을
./data폴더에 넣어주세요。 - 아래의 명령어에서 대괄호[, ]로 묶여있는 것들 중 선택해서 사용하세요。
단,--filename에는 반드시 한 개 이상의 파일명이 들어가야 합니다。 - 코드가 정상적으로 작동 시,
./data/폴더에파일이름_info.txt,파일이름_content.txt가 생성됩니다。
python main.py --filename [파일명.txt] [--info] [--content] [--newline]
# ex1) python preprocess.py --filename test.txt --content --newline
# test.txt에서 단락 내용만 개행문자를 포함해서 data/test_content.txt 파일 생성
# ex2) python preprocess.py --filename test2.txt test3.txt --info --content
# text2.txt와 text3.txt에서 파일의 정보와 단락 내용을 각각 저장 후 data/test2_info.txt, test2_content.txt
# data/test3_info.txt, test3_content.txt 파일 생성
项目详情
下载文件
下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。
源分布
nikl-1.1.0.tar.gz
(5.3 kB
查看哈希)
内置分布
nikl-1.1.0-py3-none-any.whl
(8.3 kB
查看哈希)