Skip to content

welfare-state-analytics/pyparlaclarin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pyparlaclarin

This module includes functionality for reading, creating, and modifying Parla-Clarin XML files.

For instance, you can loop over all paragraphs in a Parla-Clarin file with a simple function:

from pyparlaclarin.read import paragraph_iterator

for paragraph in paragraph_iterator(root):
	print(paragraph)

or get all speeches by a speaker

from pyparlaclarin.read import speeches_with_name

for speech in speeches_with_name(root, name="barack_obama_1961"):
	print(speech)

Further documentation is available on GitHub pages.

Releases

No releases published

Packages

No packages published