Skip to content

UUDigitalHumanitieslab/chamd

Repository files navigation

Python package Python package DOI

CHAMD

Conversion and cleaning of CHILDES CHA files into PaQu Plaintext Metadata Format (to convert to Alpino).

Installation and usage

pip install chamd
chamd --help

Running from project:

python -m chamd --help

Import as library

This way the library can be used to read CHAT file (contents) from an external application.

from chamd import ChatReader
reader = ChatReader()
chat = reader.read_file('example.cha') # or read_string

for item in chat.metadata:
    print(item)
for line in chat.lines:
    for item in line.metadata:
        print(item)
    print(line.text)

Upload to PyPi

python setup.py sdist
twine upload dist/*

Run tests

python -m unittest discover tests/

About

CHAT conversion, cleaning and reading library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages