Code examples
Download all code samples: code.zip
Alphabetical list of code samples
- parsetei.py - Opens XML files and prints some nodes and their content.
- parsetei1.py - Opens XML files that are encoded in TEI and prints some nodes and their content.
- parsetei2.py - Opens XML files that are encoded in TEI and prints info about s-tags, if present, and their content.
- readbrown.py - Read tokens and part-of-speech tags with /-separation from raw Brown corpus files and returns token-PoS-tuples with their relative frequency.
- readbrown1.py - Read tokens and part-of-speech tags with /-separation from raw Brown corpus files and returns tokens with their relative frequency.
- readbrown2.py - Read tokens and part-of-speech tags with /-separation from raw Brown corpus files and returns part-of-speech-tags with their relative frequency.