[Tutor] Picking up citations

spir denis.spir at free.fr
Sat Feb 7 13:59:31 CET 2009


Le Fri, 6 Feb 2009 22:11:14 -0800,
"Dinesh B Vadhia" <dineshbvadhia at hotmail.com> a écrit :

> Hi!  I want to process text that contains citations, in this case in legal documents, and pull-out each individual citation.  Here is a sample text:
> 
> text = "Page 500 Carter v. Jury Commission of Greene County, 396 U.S. 320, 90 S.Ct. 518, 24 L.Ed.2d 549 (1970); Lathe Turner v. Fouche, 396 U.S. 346, 90 S.Ct. 532, 24 L.Ed.2d 567 (1970); White v. Crook, 251 F.Supp. 401 (DCMD Ala.1966). Moreover, the Court has also recognized that the exclusion of a discernible class from jury service injures not only those defendants who belong to the excluded class, but other defendants as well, in that it destroys the possibility that the jury will reflect a representative cross section of the community. In John Doggone Williams v. Florida, 399 U.S. 78, 90 S.Ct. 1893, 234, 26 L.Ed.2d 446 (1970), we sought to delineate some of the essential features of the jury that is guaranteed, in certain circumstances, by the Sixth Amendment. We concluded that it comprehends, inter alia, 'a fair possibility for obtaining a representative cross-section of the community.' 399 U.S., at 100, 90 S.Ct., at 1906.9 Thus if the Sixth Amendment were applicable here, and petitioner were challenging a post-Duncan petit jury, he would clearly have standing to challenge the systematic exclusion of any identifiable group from jury service."
> 
> The results required are:
> 
> Carter v. Jury Commission of Greene County, 396 U.S. 320 (1970)
> Carter v. Jury Commission of Greene County, 90 S.Ct. 518 (1970)
> Carter v. Jury Commission of Greene County, 24 L.Ed.2d 549 (1970)
> 
> Lathe Turner v. Fouche, 396 U.S. 346 (1970)
> Lathe Turner v. Fouche, 90 S.Ct. 532 (1970)
> Lathe Turner v. Fouche, 24 L.Ed.2d 567 (1970)
> 
> White v. Crook, 251 F.Supp. 401 (DCMD Ala.1966)
> 
> John Doggone Williams v. Florida, 399 U.S. 78 (1970)
> John Doggone Williams v. Florida, 90 S.Ct. 1893, 234 (1970)
> John Doggone Williams v. Florida, 26 L.Ed.2d 446 (1970)
> 
> Before attempting to solve this problem I thought I'd first ask if anyone has seen a solution before?  

I do not really understand how you could extract *all* of those results from the source text. Anyway, you need a good parsing tool for this. Regexes would probably be rather complicated. I would recommend pyparsing, but probably personal taste...

Denis

> If not, I'll follow-up with some rules and an initial attempt.
> 
> Thanks
> 
> Dinesh
> 
> 


------
la vida e estranya


More information about the Tutor mailing list