Automating the extraction of rights and obligations for regulatory compliance