Changeset 19760ef


Ignore:
Timestamp:
05/15/08 21:55:02 (17 years ago)
Author:
obrebski <obrebski@…>
Branches:
master, help
Children:
b012e2a
Parents:
6ac84d8
git-author:
obrebski <obrebski@…> (05/15/08 21:55:02)
git-committer:
obrebski <obrebski@…> (05/15/08 21:55:02)
Message:

uzupelnione configi
oprawiona obsluga opcji weight w gue
tre znajduje swoja biblioteke (nie znajdywal wczesniej)

git-svn-id: svn://atos.wmid.amu.edu.pl/utt@51 e293616e-ec6a-49c2-aa92-f4a8b91c5d16

Location:
app
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • app/TODO

    r6ac84d8 r19760ef  
    22* przemyslec sposob wybierania jezyka / slownika po zainstalowaniu roznych dystrybucji [PK, TO] 
    33* gue nie sortuje wynikow, opcja weights dziala na odwrot 
     4* kor nie wykonuje zamian <jednalitera> -> <dwielitery>, np. ÅŒ rz 
    45 
    56WAZNE: 
  • app/conf/kor.conf

    radb4c8d r19760ef  
    1414weights = PATH_PREFIX/share/utt/weights.kor 
    1515threshold = 1.0 
     16process=W 
  • app/conf/ser.conf

    radb4c8d r19760ef  
    1313macros = PATH_PREFIX/lib/utt/terms.m4 
    1414flex-template = PATH_PREFIX/lib/utt/ser.l.template 
     15tags=uam 
  • app/doc/utt.texinfo

    r246900a r19760ef  
    1111This manual is for UAM Text Tools (version 0.90, November, 2007) 
    1212 
    13 Copyright @copyright{}  2005, 2007  Tomasz Obrêbski, Micha³ Stolarski, Justyna Walkowska, Pawe³ Konieczka. 
     13Copyright @copyright{}  2005, 2007  Tomasz Obrêbski, Micha³ Stolarski, Justyna Walkowska, Pawe³ Konieczka. 
    1414 
    1515Permission is granted to copy, distribute and/or modify this document 
     
    128128@item Marcin Walas 
    129129@item Justyna Walkowska 
     130@item Paweł Wereński 
    130131@end itemize 
    131132 
     
    249250@example 
    2502510000 00 BOS * 
    251 0000 07 W Piszemy lem:pisaæ,V 
     2520000 07 W Piszemy lem:pisaÊ,V 
    2522530007 01 S _ 
    2532540008 05 W dobre lem:dobry,ADJ 
     
    2602610024 11 W Warszawiacy lem:Warszawiak,N 
    2612620035 01 S _ 
    262 0036 03 W te¿ 
     2630036 03 W te¿ 
    2632640039 01 P . 
    2642650040 00 EOS * 
     
    268269@example 
    2692700000 BOS * 
    270 0000 W Piszemy lem:pisaæ,V 
     2710000 W Piszemy lem:pisaÊ,V 
    2712720007 S _ 
    2722730008 W dobre lem:dobry,ADJ 
     
    281282@example 
    2822830000 BOS * 
    283 W Piszemy lem:pisaæ,V 
     284W Piszemy lem:pisaÊ,V 
    284285S _ 
    285286W dobre lem:dobry,ADJ 
     
    292293W Warszawiacy lem:Warszawiak,N 
    293294S _ 
    294 W te¿ 
     295W te¿ 
    295296P . 
    296297EOS * 
     
    406407 
    407408 
    408 @c [JAK UZYSKAÆ POLSKIE CZCIONKI W DVI???] 
     409@c [JAK UZYSKAÆ POLSKIE CZCIONKI W DVI???] 
    409410 
    410411@macro parhelp 
     
    719720 
    720721@multitable {aaaaaaaaaaaaaaaaaaaaaaaaa} {aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa} 
    721 @item @strong{Authors:}                 @tab Tomasz Obrêbski 
     722@item @strong{Authors:}                 @tab Tomasz Obrêbski 
    722723@item @strong{Component category:}      @tab source 
    723724@end multitable 
     
    821822@c @chapter sen - sentencizer 
    822823 
    823 @c Authors: Tomasz Obrêbski 
     824@c Authors: Tomasz Obrêbski 
    824825 
    825826@c --------------------------------------------------------------------- 
     
    832833 
    833834@multitable {aaaaaaaaaaaaaaaaaaaaaaaaa} {aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa} 
    834 @item @strong{Authors:}                 @tab Tomasz Obrêbski, Micha³ Stolarski 
     835@item @strong{Authors:}                 @tab Tomasz Obrêbski, Micha³ Stolarski 
    835836@item @strong{Component category:}      @tab filter 
    836837@end multitable 
     
    933934 
    934935@example 
    935 0000 07 W Piszemy lem:pisaæ,V/AiVpMdTrfNpP1 
     9360000 07 W Piszemy lem:pisaÊ,V/AiVpMdTrfNpP1 
    9369370007 01 B _ 
    9379380008 05 W dobre lem:dobry,ADJ/DpNpCnavGaifn 
     
    948949 
    949950@example 
    950 0000 07 W Piszemy lem:pisaæ,V/AiVpMdTrfNpP1 
     9510000 07 W Piszemy lem:pisaÊ,V/AiVpMdTrfNpP1 
    9519520007 01 S _ 
    9529530008 05 W dobre lem:dobry,ADJ/DpNpCnavGaifn lem:dobry,ADJ/DpNsCnavGn 
     
    960961 
    961962@example 
    962 0000 07 W Piszemy lem:pisaæ,V/AiVpMdTrfNpP1 
     9630000 07 W Piszemy lem:pisaÊ,V/AiVpMdTrfNpP1 
    9639640007 01 S _ 
    9649650008 05 W dobre lem:dobry,ADJ/DpNpCnavGaifn,ADJ/DpNsCnavGn 
     
    994995string @code{<add1>}, replace suffix of length @code{<cut2>} with string 
    995996@code{<add2>}. For example @code{3t} transforms @samp{kocie} into 
    996 @samp{kot}, @code{3-4a³y} transforms @samp{najbielsi} into @samp{bia³y} 
     997@samp{kot}, @code{3-4a³y} transforms @samp{najbielsi} into @samp{bia³y} 
    997998 
    998999Each dictionary entry must be written in one line and must not contain blank characters. 
     
    10051006kotem;2,N/GaNsCi 
    10061007kocie;3t,N/GaNsCl;3t,N/GaNsCv 
    1007 najbielsi;3-4a³y,ADJ/DsNpCnGp 
    1008 najbielsze;3-5a³y,ADJ/DsNpCnGaifn 
     1008najbielsi;3-4a³y,ADJ/DsNpCnGp 
     1009najbielsze;3-5a³y,ADJ/DsNpCnGaifn 
    10091010najlepsi;dobry,ADJ/DsNpCnGp 
    10101011najlepsze;dobry,ADJ/DsNpCnGaifn 
     
    10651066@multitable {aaaaaaaaaaaaaaaaaaaaaaaaa} {aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa} 
    10661067 
    1067 @item @strong{Authors:}                 @tab Micha³ Stolarski, Tomasz Obrêbski 
     1068@item @strong{Authors:}                 @tab Micha³ Stolarski, Tomasz Obrêbski 
    10681069@item @strong{Component category:}      @tab filter 
    10691070 
     
    11561157 
    11571158 
    1158 Example: @code{3-4a³y} transforms @i{najbielsi} into @i{bia³y} 
     1159Example: @code{3-4a³y} transforms @i{najbielsi} into @i{bia³y} 
    11591160 
    11601161 
     
    11651166 
    11661167@example 
    1167 *³kê;1a,N/GfNsCa 
    1168 naj*elszy;3-4a³y,ADJ/...:... 
     1168*³kê;1a,N/GfNsCa 
     1169naj*elszy;3-4a³y,ADJ/...:... 
    11691170@end example 
    11701171 
     
    11791180 
    11801181@multitable {aaaaaaaaaaaaaaaaaaaaaaaaa} {aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa} 
    1181 @item @strong{Authors:}                 @tab Tomasz Obrêbski, Micha³ Stolarski 
     1182@item @strong{Authors:}                 @tab Tomasz Obrêbski, Micha³ Stolarski 
    11821183@item @strong{Component category:}      @tab filter 
    11831184@end multitable 
     
    12481249@multitable {aaaaaaaaaaaaaaaaaaaaaaaaa} {aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa} 
    12491250 
    1250 @item @strong{Authors:}                 @tab Tomasz Obrêbski 
     1251@item @strong{Authors:}                 @tab Tomasz Obrêbski 
    12511252@item @strong{Component category:}      @tab filter 
    12521253 
     
    12681269 
    12691270input: 
    1270 0000 05 W Cze¶æ 
     12710000 05 W Cze¶Ê 
    127112720005 01 P ! 
    127212730006 01 S _ 
     
    12791280output: 
    128012810000 00 BOS * 
    1281 0000 05 W Cze¶æ 
     12820000 05 W Cze¶Ê 
    128212830005 01 P ! 
    128312840006 00 EOS * 
     
    13001301@c @chapter gph - graphizer 
    13011302 
    1302 @c Authors: Tomasz Obrêbski 
     1303@c Authors: Tomasz Obrêbski 
    13031304 
    13041305 
     
    13131314 
    13141315@multitable {aaaaaaaaaaaaaaaaaaaaaaaaa} {aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa} 
    1315 @item @strong{Authors:}                 @tab Tomasz Obrêbski 
     1316@item @strong{Authors:}                 @tab Tomasz Obrêbski 
    13161317@item @strong{Component category:}      @tab filter 
    13171318@end multitable 
     
    15411542 
    15421543@multitable {aaaaaaaaaaaaaaaaaaaaaaaaa} {aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa} 
    1543 @item @strong{Authors:}                 @tab Tomasz Obrêbski 
     1544@item @strong{Authors:}                 @tab Tomasz Obrêbski 
    15441545@item @strong{Component category:}      @tab filter 
    15451546@end multitable 
     
    16351636@section kot - untokenizer 
    16361637 
    1637 Authors: Tomasz Obrêbski 
     1638Authors: Tomasz Obrêbski 
    16381639 
    16391640@command{kot} is the opposite of @command{tok}. It changes UTT-formatted text into plain text. 
     
    18501851 
    18511852@multitable {aaaaaaaaaaaaaaaaaaaaaaaaa} {aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa} 
    1852 @item @strong{Authors:}                 @tab Tomasz Obrêbski 
     1853@item @strong{Authors:}                 @tab Tomasz Obrêbski 
    18531854@item @strong{Component category:}      @tab filter 
    18541855@end multitable 
     
    18891890 
    18901891@multitable {aaaaaaaaaaaaaaaaaaaaaaaaa} {aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa} 
    1891 @item @strong{Authors:}                 @tab Tomasz Obrêbski 
     1892@item @strong{Authors:}                 @tab Tomasz Obrêbski 
    18921893@item @strong{Component category:}      @tab filter 
    18931894@end multitable 
  • app/src/dgp/tre.rb

    radb4c8d r19760ef  
    11#!/usr/bin/ruby -I /usr/local/lib/utt -I $HOME/.local/lib/utt 
    22 
     3$: << "#{ENV['HOME']}/.local/lib/utt" 
     4$: << "/usr/local/lib/utt" 
     5 
    36require 'getoptlong' 
     7require 'seg.rb' 
    48 
    59opts = GetoptLong.new( 
     
    6064  end 
    6165end 
    62  
    63 #require File.expand_path(File.dirname(__FILE__) + "../lib/utt/seg.rb") 
    64 require 'seg.rb' 
    6566 
    6667$dgpsep=';' 
  • app/src/gue/cmdline_guess.ggo

    r8d3e6ab r19760ef  
    88option "dictionary"             d       "File with dictionary information" string typestr="filename" default="gue.bin" no 
    99option "per-info"               v       "Display performance information" flag off 
    10 option "weights"                w       "Print weights" flag off hidden 
     10option "weights"                w       "Print weights" flag off 
    1111option "no-uppercase"           -       "Do not process form containing uppercase letters" flag off 
    1212 
  • app/src/gue/common_guess.cc

    r6ac84d8 r19760ef  
    88char dictionary[255]; 
    99bool per_info=false; 
    10 bool weights=true; 
     10bool weights=false; 
    1111 
    1212void process_guess_options(gengetopt_args_info* args) 
     
    5656 
    5757  if(args->weights_given) 
    58     weights=false; 
     58    weights=true; 
    5959 
    6060} 
Note: See TracChangeset for help on using the changeset viewer.