Download Corpus Data Processing with Lexa

Transcript
Raymond Hickey Corpus Data Processing with Lexa Page 5 of 17
specific to a particular word processor and so cannot be intelligently interpreted by
some other programme. To analyse texts with Lexa, which have been processed or
created with a word processor, these must be stored to disk without any formatting
information (this option will always be available with one's word processing
software).
Users of computers should thus bear in mind that in computing the term text has
a very definite meaning. A text is a collection of informational units (usually bytes)
which are arranged as an unstructured number of lines. There may well be a
semantic structure to the text (determined by its contents) but for the computer a text
contains no inherent structure. In computing, the term 'text' is frequently used
somewhat loosely to refer to an ASCII (i.e. non-formatted) text.
With an ASCII text there is a pre-defined set of characters which trigger the end
of a line: ASCII $13 and ASCII $10 (called carriage return and line feed
respectively). Any programme processing an ASCII text thus knows where a line
comes to an end.
2.2.1 Tagging a text corpus
Before any kind of useful lexical and grammatical analysis can be performed on a
text corpus it is necessary for it to be tagged. This is a task which may well have
been carried out in advance by the compilers/distributors of the corpus. However it
is not always the case. For instance the Lancaster-Oslo-Bergen corpus is available
in a pre-tagged form whereas the Helsinki corpus is not. Thus those users of the
latter who wish to tag it (to what extent is a secondary matter) will require software
such as Lexa. Note that the tagging scheme used for the Lancaster-Oslo-Bergen
corpus can be applied to the Helsinki corpus in either the original or a user-defined
form (the decisions on what forms in a text are to obtain what grammatical tag from
a set of tags are made by the user; the details of this procedure are outlined below).
In essence tagging works as follows: each word in a file is examined and a label is
added to it to identify it grammatically.
Stretch of text before tagging
A marchant was ther, with a forked berd,
In motlee, and hye on horse he sat,
Upon his heed a Flaundryssh bevere hat,
His bootes chasped faire and fetisly
Stretch of text after tagging
A_ART marchant_NOUN was_VERB ther_PREP, with_ADV a_ART
forked_ADJ berd_NOUN,
In_PREP motlee_NOUN, and_CONJ hye_ADJ on_PREP horse_NOUN
the_PERPRO sat_VERB,
Upon_PREP his_POSSPRO heed_NOUN a_ART Flaundryssh_ADJ
bevere_NOUN hat_NOUN,
His_POSSPRO bootes_NOUN chasped_VERB faire_ADJ and_CONJ
fetisly_ADV