<?xml version="1.0" encoding="UTF-8"?>
<teiHeader xml:id="NKJP_header" xmlns="http://www.tei-c.org/ns/1.0" xml:lang="en" type="corpus">
 <fileDesc>    
  <titleStmt>
   <title xml:lang="pl">Narodowy Korpus Języka Polskiego -- próbka 1 milion słów</title>
   <title xml:lang="en">National Corpus of Polish -- the 1 million word sample</title>
   <funder xml:lang="pl" xml:id="mnisw">Ministerstwo Nauki i Szkolnictwa Wyższego (Polska)</funder>
   <funder xml:lang="en">Ministry of Science and Higher Education (Poland)</funder>
   <respStmt>
    <name xml:id="adamp">Adam Przepiórkowski</name>
    <resp>head of the team at the Institute of Computer Science at the Polish Academy of Sciences</resp> 
    <resp>project coordinator</resp> 
   </respStmt>
   <respStmt>
    <name xml:id="rlg">Rafał L. Górski</name>
    <resp>head of the team at the Institute of Polish Language at the Polish Academy of Sciences</resp> 
   </respStmt>
   <respStmt>
    <name xml:id="blt">Barbara Lewandowska-Tomaszczyk</name>
    <resp>head of the team at the University of Łódź</resp> 
   </respStmt>
   <respStmt>
    <name xml:id="marekl">Marek Łaziński</name>
    <resp>head of the team at the Polish Scientific Publishers PWN</resp> 
   </respStmt>
   <respStmt>
    <name xml:id="bansp">Piotr Bański</name>
    <resp>design of the XML schemata</resp>
   </respStmt>
   <respStmt>
    <name xml:id="iwill">Izabela Will</name>
    <resp xml:lang="en">project administration in 2008</resp>
   </respStmt>
   <respStmt>
    <name xml:id="beataw">Beata Wójtowicz</name>
    <resp xml:lang="en">project administration in 2009-2010</resp>
   </respStmt>
   <respStmt>
    <name xml:id="ldegorski">Łukasz Degórski</name>
    <resp xml:lang="en">general technical responsibilities in the project (Warsaw)</resp>
    <resp xml:lang="en">sampling for the 1 million word subcorpus</resp>
   </respStmt>
   <respStmt>
    <name xml:id="pezik">Piotr Pęzik</name>
    <resp xml:lang="en">general technical responsibilities in the project (Łódź)</resp>
   </respStmt>
  </titleStmt>
  
  <editionStmt>
   <edition>initial version, for the University of Barcelona</edition>
  </editionStmt>
  
  <publicationStmt>
   <pubPlace>Warsaw, Poland</pubPlace>
   <address>
    <addrLine xml:lang="pl">Instytut Podstaw Informatyki PAN</addrLine>
    <addrLine xml:lang="pl">ul. Ordona 21</addrLine>
    <addrLine xml:lang="pl">01-237 Warszawa</addrLine>
    <addrLine>Poland</addrLine>
    <addrLine>tel. (+48 22) 8362841, fax (+48 22) 8376564</addrLine>
    <addrLine><email n="coordinator">adamp@ipipan.waw.pl</email></addrLine>
    <addrLine><ref target="http://nkjp.pl/" n="www">http://nkjp.pl/</ref></addrLine>
   </address>
   <publisher>Institute of Computer Science, Polish Academy of Sciences</publisher>
   <distributor>NKJP Consortium</distributor>
   <availability>
    <p>Once officially published, this 1 million subcorpus of the National Corpus of Polish will be available publicly for free.</p>
    <p>This version is made available to the University of Barcelona, Department  of General Linguistics, Barcelona, Gran Via de les Corts Catalanes 585, on the basis of the licence agreement, which should be consulted for details.</p>
   </availability>
   <date when="2009-06-05">First batch of texts (130K words) ready.</date>
  </publicationStmt>
  
  <sourceDesc>
   <p>The origin of texts in NKJP may be:
    <list type="bulleted">
     <item>the IPI PAN Corpus</item>
     <item>the PELCRA Corpus</item>
     <item>the PWN Corpus</item>
     <item>texts collected by IJP PAN, PELCRA and PWN specifically for NKJP.</item>
    </list>
   </p>
   <p>See sourceDesc/bibl/note[@text_origin] in particular header.xml files.</p>
  </sourceDesc>
 </fileDesc>

 <encodingDesc>

  <projectDesc>

   <p>A linguistic corpus is a collection of texts where one can find the typical use of a single word or a phrase, as well as their meaning and grammatical function. Nowadays, without access to a language corpus, it has become impossible to do linguistic research, to write dictionaries, grammars and language teaching books, to create search engines sensitive to Polish inflexion, machine translation engines and software of advanced language technology. Language corpora have become an essential tool for linguists, but they are also helpful for software engineers, scholars of literature and culture, historians, librarians and other specialists of art and computer sciences.</p>

   <p>There already exist national corpora compiled by the <ref target="http://www.natcorp.ox.ac.uk">British</ref>, <ref target="http://www.ids-mannheim.de/kl/projekte/korpora/">Germans</ref>, <ref target="http://ucnk.ff.cuni.cz/english/index.html">Czech</ref> and <ref target="http://www.ruscorpora.ru/en/index.html">Russians</ref>. Polish people also need an extensive, well balanced language corpus – a language source which can be accessed online.</p>

   <p>The National Corpus of Polish is a shared initiative of four institutions: <ref target="http://www.ipipan.waw.pl/">Institute of Computer Science</ref> at the Polish Academy of Sciences (coordinator), <ref target="http://www.ijp-pan.krakow.pl">Institute of Polish Language</ref> at the Polish Academy of Sciences, <ref target="http://www.pwn.pl">Polish Scientific Publishers PWN</ref>, and the Department of Computational
    and Corpus Linguistics at the <ref target="http://www.uni.lodz.pl/">University of Łódź</ref>. It has been registered as a research-development project of <ref target="http://www.nauka.gov.pl">the Ministry of Science and Higher Education</ref>.</p>

   <p>These four institutions have started cooperation to build a reference corpus of Polish language containing hundreds millions of words. The corpus that will appear soon on this site will be searchable by means of advanced tools that analyse Polish inflection and the Polish sentence structure.</p>

   <p>The list of sources for the corpora contains classic literature, daily newspapers, specialist periodicals and journals, transcripts of conversations, and a variety of short-lived and internet texts. For a corpus to be reliable, not only it is necessary to contain a high number of words, but it also needs a diversity of texts with respect to the subject and genre. The conversations ought to represent both male and female speakers, in various age groups, coming from various regions in Poland.</p>

  </projectDesc> 

  <samplingDecl>
   <p>For each text type, words in all texts of this type are counted and percent of each text to be sampled is determined (so that the target subcorpus has assumed proportions). Newspaper articles etc. are grouped in aggregates (sample of an article would be too short to be sensible).</p>
   <p>For each text (or aggregate), each paragraph's length in words is counted and sensible paragraphs are marked. For paragraphs shorter than 25 words the sensibility condition is "begins like a sentence and ends like a sentence". For longer paragraphs, it is just "begins like a sentence". The exact regular expressions to be matched are</p>
   <p>/^\s*[\(\"]?(-\s|\s)?([0-9A-Z]|Ą|Ć|Ę|Ł|Ó|Ń|Ś|Ź|Ż).*[\.!?\x{2026}\x{2025}:]+[\"\)]*\s*$</p>
   <p>and</p>
   <p>/^\s*[\(\"]?(-\s|\s)?([0-9A-Z]|Ą|Ć|Ę|Ł|Ó|Ń|Ś|Ź|Ż).*$.</p>
   <p>Then comes the loop:</p>
   <p>* Randomly select a paragraph</p>
   <p>* Look at all sensible sequences of paragraphs, 40 to 70 words in length, containing this paragraph. Sensible sequence contains only sensible, unused paragraphs, has average paragraph length greater than 5, and all paragraphs come from the same source (important in aggregates: we don't step on source file boundaries).</p>
   <p>* Choose the sequence with the length closest to 55 words and add it to the sample.</p>
   <p>* Mark all paragraph in the chosen sequence as used.</p>
   <p>...until we have enough words in all the samples from the given file.</p>
   <p>The algorithm is deliberately simple and does not attempt to anticipate and deal with all possible problems. Inevitably, in many real-life cases it requires a manual intervention anyway. Some manually altered samples may be shorter than 40 or longer than 70 words, but in only a few cases fall out of the 25-100 words interval.</p>
  </samplingDecl>

  <editorialDecl>
   <p>For privacy reasons, some of the people's names mentioned in the transcribed conversations have been modified. Uppercase characters are only used in popular proper nouns.</p>
  </editorialDecl>

  <tagsDecl>

   <namespace name="http://www.tei-c.org/ns/1.0">
    <tagUsage gi="residence">Used to denote the speaker's longest place of residence.  (Used only for spoken data.)</tagUsage> 
   </namespace>

   <namespace name="http://www.nkjp.pl/ns/1.0">
    <tagUsage gi="topic">The topic of a conversation (i.e., used only for spoken data).</tagUsage> 
   </namespace>

  </tagsDecl>

<!--   <refsDecl> -->
<!--    AP: Here, conventions for referencing (esp., for @n and @xml:id) -->
<!--    are explained, e.g., xml:id="IPIPAN_093982391", etc. -->
<!--    AP: In case of the 1M corpus, this should contain info about the -->
<!--    connection between the samples and the paths to full files, etc. -->
<!--   </refsDecl> -->

  <classDecl>
   <taxonomy xml:id="taxonomy-NKJP-type">  
    <category xml:id="typ_lit"> <!-- target: 16% of the corpus -->
     <catDesc xml:lang="pl">literatura piękna</catDesc>
     <catDesc xml:lang="en">fiction</catDesc>
    </category>
    <category xml:id="typ_fakt"> <!-- target: 5,5% of the corpus -->
     <catDesc xml:lang="pl">literatura faktu</catDesc>
     <catDesc xml:lang="en">non-fiction novel</catDesc>
    </category>
    <category xml:id="typ_publ"> <!-- target: 50% of the corpus; see the comment below -->
     <catDesc xml:lang="pl">publicystyka i wiadomości prasowe</catDesc>
     <catDesc xml:lang="en">journalism</catDesc>
    </category>
    <category xml:id="typ_nd"> <!-- target: 2% of the corpus -->
     <catDesc xml:lang="pl">naukowo-dydaktyczny</catDesc>
     <catDesc xml:lang="en">academic writing</catDesc>
    </category>
    <category xml:id="typ_inf-por"> <!-- target: 5,5% of the corpus -->
     <catDesc xml:lang="pl">informacyjno-poradnikowy</catDesc>
     <catDesc xml:lang="en">informative and instructive writing</catDesc>
    </category>
    <category xml:id="typ_nklas"> <!-- target: no more than 1% of the corpus -->
     <catDesc xml:lang="pl">książka niebeletrystyczna niesklasyfikowana</catDesc>
     <catDesc xml:lang="en">unclassified non-fiction book</catDesc>
    </category>
    <category xml:id="typ_inne_pisane"> <!-- target: 3% of the corpus-->
     <catDesc xml:lang="pl">inne teksty pisane</catDesc>
     <catDesc xml:lang="en">miscellaneous (written)</catDesc>
     <category xml:id="typ_urzed"> <!-- target: this category is included in "typ_inne_pisane" -->
      <catDesc xml:lang="pl">urzędowo-kancelaryjny</catDesc>
      <catDesc xml:lang="en">legal and official</catDesc> 
     </category>
    </category>
    <category xml:id="typ_internet"> <!-- target: 7% of the corpus -->
     <catDesc xml:lang="pl">Internet</catDesc>
     <catDesc xml:lang="en">Internet</catDesc>
    </category>		
    <!-- the target of the following categories is 10% of the corpus in total -->
    <category xml:id="typ_konwers"> <!-- target: 1% of the corpus -->
     <catDesc xml:lang="pl">konwersacyjne</catDesc>
     <catDesc xml:lang="en">conversational</catDesc>
    </category>
    <category xml:id="typ_media">
     <catDesc xml:lang="pl">mówione medialne</catDesc>
     <catDesc xml:lang="en">spoken from the media</catDesc>
    </category>
    <category xml:id="typ_qmow">
     <catDesc xml:lang="pl">quasi-mówione</catDesc>
     <catDesc xml:lang="en">quasi-spoken</catDesc>
    </category>
   </taxonomy>
  </classDecl>

  <!-- RLG: The genre "publicystyka i teksty prasowe" (Eng.:
  "journalism") consists of 51% texts taken from dailies, 47% texts
  taken from magazines and 2% texts taken from journalistic books.

  A journalistic text in a daily is defined as a text which is
  labelled in the header by a combination of 1) <catRef
  scheme="#taxonomy-NKJP-type" target="#typ_prasa"> and 2) <catRef
  scheme="#taxonomy-NKJP-channel" target="#kanal_prasa_dziennik">.

  A journalistic text in a magazine is defined in the header by a
  combination of 1) <catRef scheme="#taxonomy-NKJP-type"
  target="#typ_prasa"> and 2) <catRef scheme="#taxonomy-NKJP-channel"
  target="#kanal_prasa"> or one of its subcategories, with the
  exception of <catRef scheme="#taxonomy-NKJP-channel"
  target="#kanal_dziennik">.

  A journalistic book is defined by a combination of 1) <catRef
  scheme="#taxonomy-NKJP-type" target="#typ_prasa"> and 2) <catRef
  scheme="#taxonomy-NKJP-channel" target="#kanal_ksiazka">.

  In total texts taken from dailies, magazines and books make up
  25,5%, 23,5% and 1% of the entire corpus, respectively. This
  selection of channels of texts is done in order to assure
  representativeness of the corpus. -->


  <classDecl>
   <taxonomy xml:id="taxonomy-NKJP-channel">  
    <category xml:id="kanal_prasa">
     <catDesc xml:lang="pl">prasa</catDesc>
     <catDesc xml:lang="en">press</catDesc>
     <category xml:id="kanal_prasa_dziennik">
      <catDesc xml:lang="pl">dziennik</catDesc>
      <catDesc xml:lang="en">daily</catDesc>
     </category>
     <category xml:id="kanal_prasa_tygodnik">
      <catDesc xml:lang="pl">tygodnik</catDesc>
      <catDesc xml:lang="en">weekly</catDesc>
     </category>
     <category xml:id="kanal_prasa_miesiecznik">
      <catDesc xml:lang="pl">miesiecznik</catDesc>
      <catDesc xml:lang="en">monthly</catDesc>
     </category>
     <category xml:id="kanal_prasa_inne"> <!-- e.g., bi-weekly or occasional -->
      <catDesc xml:lang="pl">inne prasowe</catDesc>
      <catDesc xml:lang="en">other press</catDesc>
     </category>
    </category>
    <category xml:id="kanal_ksiazka">
     <catDesc xml:lang="pl">książka</catDesc>
     <catDesc xml:lang="en">book</catDesc>
    </category>
    <category xml:id="kanal_internet">
     <catDesc xml:lang="pl">Internet</catDesc>
     <catDesc xml:lang="en">internet</catDesc>
    </category>
    <category xml:id="kanal_mowiony">
     <catDesc xml:lang="pl">mówiony</catDesc>
     <catDesc xml:lang="en">spoken</catDesc>
    </category>
    <category xml:id="kanal_ulotka">
     <catDesc xml:lang="pl">ulotki, ogłoszenia, reklamy</catDesc>
     <catDesc xml:lang="en">leaflets, announcemnets, ads</catDesc>
    </category>
   </taxonomy>
  </classDecl>

  <classDecl>
   <taxonomy xml:id="ukd">
    <bibl>
     <title xml:lang="pl">Uniwersalna Klasyfikacja Dziesiętna</title>
     <title xml:lang="en">Universal Decimal Classification</title>
     <edition>UDC-P058</edition>
    </bibl>
   </taxonomy>
  </classDecl>

  <classDecl>
   <taxonomy xml:id="bn">
    <bibl>
     <title xml:lang="pl">Klasyfikacja Biblioteki Narodowej</title>
     <title xml:lang="en">Polish National Library Classification</title>
     <edition>Słownik języka haseł przedmiotowych Biblioteki Narodowej. Wyd. 5 popr. i rozsz., stan na dzień 31 grudnia 2004 roku.</edition>
    </bibl>
   </taxonomy>
  </classDecl>
 </encodingDesc>
 
 <revisionDesc>
  <change who="#adamp" when="2009-06-05" xml:lang="en">First version of the header created.</change>
 </revisionDesc>
 
</teiHeader>
