CSCI 189 - Assignment 8 Lab Work

The Problem set for this assignment is due at 5:00pm Tuesday November 29, 2005.

Start Haskell by following the same procedure that you used in earlier labs.

  1. Open the file http://www.bowdoin.edu/~allen/courses/cs189/Asst8/Asst8.lhs from a Web browser and save this file as Asst8.lhs (do not append the .txt suffix) on the Desktop.
  2. Open two windows:

    (a) A Unix "Shell" where you can run Haskell programs: select Macintosh HD -> Applications -> Utilities -> Terminal

    (b) A text editor where you can edit Haskell programs: select Macintosh HD -> Applications -> TextEdit

  3. Line up these two window side by side so that you can see them both.
  4. Now switch to the right-hand window and open the tutorial lab exercise for this assignment by selecting File -> Open -> Asst7.lhs The following text should appear in that window.

    --------------------------------------------

    Statistical Methods for Ambiguity Resolution
    Allen Tucker
    April 2004

    --------------------------------------------

    > module Asst8 where

    > import Set

    Statistical methods (probability and conditional probability) have been developed (E.g., Charniak, 1993) that help select part of speech, word sense, and grammatical structure for ambiguous sentences.  Here, we explore the use of statistical methods for part of speech tagging.

  5. Now switch to the left-hand window and type the following two lines at the prompt:
    cd Desktop
    hugs Asst8