Friday 16 December 2011

Not so much learnt today

So these are the things I learnt today.

Natural Language Processes

Today I've been reading about the structure of languages in the book Speech and Language Processing - Daniel Jurafsky and James H. Martin, which is recommended for the Natural Language Processes course running in the New Year. Turkish has 40000 possible forms of a verb excluding derivational suffices. This means that storing all the words in Turkish is impossible as the derivational suffices allow infinitely many words.

Java

Progress is slow, but at least I'm picking up bits and pieces. Today, I tried to write a loop using 

   for(int item:nums) 
   { 
         item=5; 
    } 

to change the values in the nums array. This doesn't work. It does the equivalent to

 for(int i=0;i <nums.length;i++)
  {
       item=nums[i];
       item=5;
  }

So it was back to the normal for loop

  for(int i=0;i <nums.length;i++)
  {
       nums[i]=5;
  }

to do what I wanted to do.

No comments: