<% #
 # This file is part of the Anotatornia suite.
 # 
 # Copyright © 2007, 2008, 2009, 2010 by Instytut Podstaw Informatyki
 # Polskiej Akademii Nauk (IPI PAN; Institute of Computer Science, Polish
 # Academy of Sciences; cf. www.ipipan.waw.pl).  All rights reserved.
 # 
 # This file may be distributed and/or modified under the terms of the
 # GNU General Public License version 3 as published by the Free Software
 # Foundation and appearing in the file COPYING included in the packaging
 # of this file.  (See http://www.gnu.org/licenses/translations.html for
 # unofficial translations.)
 # 
 # A commercial license is available from IPI PAN (contact
 # Michal.Ciesiolka.waw.pl or ipi.waw.pl for more
 # information).  Licensees holding a valid commercial license from IPI
 # PAN may use this file in accordance with that license.
 # 
 # This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING
 # THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 # PURPOSE.
%>

<div id="main">
<h1>nieoficjalna stronka do sprawdzania różnych rzeczy przez natrora</h1>

<h3> Anotatorzy i status trefnych zdań </h3>

<% [ 369, 411, 1528, 4473, 4874, 5062, 5801].each do |zi| 
    z=Zdanie.find(zi)
    z.zdania_transzy.each do |zt| 
      
      ui=zt.get_uzid
      if ui
	u = Uzytkownik.find(ui)
	lo = u.login 
      else lo= "(nil)"
      end
      
   -%>

<%= "#{zt.zdanie_id}, #{zt.transza_auto.opis}, #{lo}: #{zt.status_tekst}" -%>
<br/>
<% end end -%>



<h3> Ile zaanotowali poszczególni Anotatorzy: </h3>

<% zest = Hash.new(0)
   ZdaniaTranszy.find_all.each { |zt|
   if zt.ma_status?( :>, :niezatwierdzone )
zest[zt.get_uzid] += 1
end
}
zest.each do |key, val|
-%>
<p> <%= Uzytkownik.find(key).login + ": " + val.to_s -%>
</p>
<% end-%>


<h3> Przypisanie transz </h3>
<ul>
<% TranszaAuto.find_all.each do |tra| -%>
<li>
<%= "#{tra.opis}: #{if tra.uzytkownik: tra.uzytkownik.login
    ; else '' end}" -%>
</li>
<% end -%>
</ul>

<div> -------------------------------- </div>


<% Zdanie.find(25).token.each { |tok| 
if tok.do_sensu?(4)
   ts = tok.sens(4)
   if ts
-%>
<%= ts.sensy.sens_ozn  %><br/>

<% end end } -%>
   


<%
   les =   Leksem.find(:all,
		       :include => :klasa_gram,
		       :conditions => 
		       " klasa_gram.klasa_gram_ozn in ('ppron12', 'ppron3', 'siebie') "
		       )
   les.each do |le|
%>
<p>
<%= "#{le.lemat} #{le.klasa_gram.klasa_gram_ozn}"
%>
</p>

<% end %>


<% FrazaTyp.typy_glow.sort.each do |tg| -%>
<%= tg[0] + ": " + tg[1].join(", ") %><br/>
<% end %>


<% FrazaTyp.find_all.each do |ft| %>
<p> <%= ft.typ_symbol %>
<br/> synhead:
/<%= ft.synhead_list %>/
<% ft.klasy_glowy(:synh).each {|kgl| %>
/<%= kgl.join(", ") %>/ <br/>
<% } %>
 semhead: /<%= ft.semhead_list %>/
<% ft.klasy_glowy(:semh).each {|kgl| %>
/<%= kgl.join(", ") %>/ <br/>
<% } %>

</p>

<% end %>





</div>
