March 22, 2004

total-difference

March 22, 2004 - Categories: emacs
(defun sacha/total-difference (list)
  "Computes the sum of the differences between successive items in LIST."
  (let ((distance 0))
    (while (cdr list)
      (setq distance (+ (abs (- (car list) (car (cdr list)))) distance))
      (setq list (cdr list)))
    distance))

I used this to calculate the total distance travelled by a read/write
head given the list of tracks.

Named entity extraction in Perl

March 22, 2004 - Categories: -Uncategorized

Lingua::EN::NamedEntity

Language-independent named entity recognition

March 22, 2004 - Categories: -Uncategorized

http://cnts.uia.ac.be/conll2002/ner/