वीर

18 กุมภาพันธ์ 2008

Building Stanford POS Tagger from source package

Filed under: Uncategorized — वीर @ 1:13 pm
Tags: , , , , , , , , , , ,

I downloaded Stanford POS tagger from http://nlp.stanford.edu/software/postagger-2006-05-21.tar.gz, which contains source code and binary. However, I cannot rebuild this pos tagger from source. I took 3-4 hours to fix it thus I post the patch as follow:

diff -Naur edu.orig/stanford/nlp/stats/Counters.java edu/stanford/nlp/stats/Counters.java
— edu.orig/stanford/nlp/stats/Counters.java	2006-05-18 06:55:16.000000000 +0000
+++ edu/stanford/nlp/stats/Counters.java	2007-11-27 12:04:16.000000000 +0000
@@ -1,6 +1,6 @@
 package edu.stanford.nlp.stats;
 
-import edu.stanford.nlp.ling.IndexedFeatureLabel;
+//import edu.stanford.nlp.ling.IndexedFeatureLabel;
 import edu.stanford.nlp.util.*;
 import edu.stanford.nlp.util.PriorityQueue;
 
diff -Naur edu.orig/stanford/nlp/tagger/maxent/TestSentence.java edu/stanford/nlp/tagger/maxent/TestSentence.java
— edu.orig/stanford/nlp/tagger/maxent/TestSentence.java	2006-05-08 02:24:12.000000000 +0000
+++ edu/stanford/nlp/tagger/maxent/TestSentence.java	2007-11-27 12:04:11.000000000 +0000
@@ -18,7 +18,7 @@
 import edu.stanford.nlp.sequences.SequenceModel;
 import edu.stanford.nlp.sequences.BestSequenceFinder;
 import edu.stanford.nlp.sequences.ExactBestSequenceFinder;
-import edu.stanford.nlp.sequences.BeamBestSequenceFinder;
+//import edu.stanford.nlp.sequences.BeamBestSequenceFinder;
 
 import java.io.BufferedReader;
 import java.io.InputStreamReader;   However, I still use Acopost and in-house POS tagger based on CRF++.

2 ตุลาคม 2007

เกือบจะแทน (Apple) mighty mouse ได้

Filed under: Uncategorized — वीर @ 4:55 pm
Tags: , , , , , ,

mouse

ซื้อมาใหม่จากงาน comworld ที่พารากอน. กะว่าน่าจะใช้แทน mighty mouse ได้. แต่จริงๆมันก็แทนไม่ได้หรอก แต่มี feature ที่สำคัญคือ scroll ทางแนวนอนได้. ไปดูจริงๆ Genius มี 4D mouse ตั้งหลายรุ่น แต่ว่ารุ่นอื่นๆ ใช้การโยก scroll wheel เอา. แต่ว่ารุ่นนี้ใช้แสงหมดเลย ภายในไม่มีชิ้นส่วนเคลื่อนไหวเลย ยกเว้น switch ที่เอาไว้ click. ราคาถูกกว่า mighty mouse มากๆ เขาบอกว่าถ้าขายนอกงาน comworld ก็ประมาณ 800 บาท.

mouse นี่ผมเอาไว้ให้นักภาษาศาสตร์ที่ annotate corpus ให้ใช้. เพราะว่า annotation editor มันต้อง scroll ทางแนวนอนเยอะ. ถ้าเกิดว่าได้ผลกะว่าจะลองขอเงินที่ lab มาซื้อเพิ่มดู.

หน้าต่อไป »

บลอกที่ WordPress.com .