Corpora: a program needed

From: Sampo Nevalainen (samponev@cc.joensuu.fi)
Date: Thu May 30 2002 - 08:57:28 MET DST

  • Next message: Alexander Clark: "Re: Corpora: a program needed"

    Dear corporal mates,

    I am in an acute need for a simple program (dos, Windows, Unix) that would
    provide me with cumulative numbers of different words (types) as it skims
    through a text word by word. In other words, the program should print out a
    number for each word but increase the number only when a new type is
    encountered. The output would be something like that:
    1
    2
    3
    4
    4
    5
    6
    6
    6
    ...
    Probably I could write this kind of program myself, but I do not have time
    or ardour to reinvent the wheel. Maybe a simple Perl script would do the
    trick? Thank you in advance for your support.

    yours,
    sampo

    ( : ============================================= : )

    Sampo Nevalainen, M.A.
    Researcher
    University of Joensuu
    Savonlinna School of Translation Studies
    P.O.Box 48
    FIN-57101 Savonlinna
    FINLAND

    tel +358-15-511 70 (operator)
             +358-15-511 7704
    fax +358-15-515 096
    email samponev@cc.joensuu.fi
    http://www.joensuu.fi/slnkvl/



    This archive was generated by hypermail 2b29 : Thu May 30 2002 - 09:15:32 MET DST