childes-cha文件到paqu明文元数据格式的转换与清理
chamd的Python项目详细描述
childes-cha文件到paqu明文的转换与清理 元数据格式(转换为alpino)。
pip install chamd chamd --help
从项目运行:
python -m chamd --help
作为库导入
这样就可以使用库从外部应用程序读取聊天文件(内容)。
fromchamdimportChatReaderreader=ChatReader()chat=reader.read_file('example.cha')# or read_stringforiteminchat.metadata:print(item)forlineinchat.lines:foriteminline.metadata:print(item)print(line.text)
上传到pypi
python setup.py sdist twine upload dist/*
运行测试
python -m unittest discover tests/