saos-tm.extractor.cc-parties
Module contains algorithm for extraction of parties in Polish case law - specifically Common Courts.
extract-cc-parties-civil
(extract-cc-parties-civil s)
Extracts parties that occurr in a given string s
which is assumed to be a civil case of Common Polish Courts. It works and is tested on texts with html tags.
The result is a map containing keys:
:plaintiff
- name (often partly of fully anonymized) of plaintiff (can be a person of organization):defendant
- name (often partly of fully anonymized) of defendant (can be a person of organization)
Example:
(extract-cc-parties-civil "<strong><!-- -->sprawy z wniosku
<span class="anon-block">Ł. G.</span> </strong></p>
<p>przeciwko Zakładowi Ubezpieczeń Społecznych Oddział w
<span class="anon-block">O.</span></p> <p>
o prawo do renty z tytułu niezdolności do pracy</p>")
{:plaintiff "<span class="anon-block">Ł. G.</span>",
:defendant "Zakładowi Ubezpieczeń Społecznych
Oddział w <span class="anon-block">O.</span>"}
At first the function extracts sentence of judgment. It uses parties-cc-civil-indicators
to localize the place of parties appearance in text. Then it extracts plaintiff and defendant with extract-plaintiff
and `extract-defendant’ functions respectively.
extract-cc-parties-criminal
(extract-cc-parties-criminal s)
Extracts parties that occurr in a given string s
which is assumed to be a criminal case of Common Polish Courts. It works and is tested on texts with html tags.
The result is a map containing keys:
:prosecutor
- name of prosecutor
Example:
(extract-cc-parties-criminal "<p>Protokolant Agnieszka Malewska</p>
<p>przy udziale Prokuratora Prokuratury Okręgowej w Białymstoku
Wiesławy Sawośko-Grębowskiej</p> <p>po rozpoznaniu
w dniu 28 marca 2013 roku</p>")
{:prosecutor "Prokuratora Prokuratury Okręgowej w Białymstoku
Wiesławy Sawośko-Grębowskiej"}
Functions works in an analogous way to extract-cc-parties-civil. At first the function extracts sentence of judgment. It uses parties-cc-criminal-indicators
to localize the place of parties appearance in text. Then it extracts prosecutor with extract-plaintiff
function, because the same function can be used for civil and criminal cases in this context.