Help for this page

Select Code to Download


  1. or download this
    sub x{ 
        my( @a, @b ) = @_; 
    ...
    x( @x, @y );;
    a:[1 2 3 4 5 6 7 8 9 10 a b c d e f]
    b:[]
    
  2. or download this
    sub MI {
        my( $string_es, $string_en, $hash_es, $hash_en ) = @_;
    ...
        my $mi = $prob_es_en * log( $prob_es_en / ( $prob_es * $prob_en ) 
    +);
        return $mi;
    }
    
  3. or download this
    #create hash files from ngram statistics
    my %hash_en;
    ...
        }
        close FILE;
    }