वीर

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

Building Stanford POS Tagger from source package

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

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++.

No Comments Yet »

ยังไม่มีความคิดเห็นใดๆ

RSS feed สำหรับความคิดเห็นในกระทู้นี้ TrackBack URI

เขียนความคิดเห็นของคุณ

บลอกที่ WordPress.com .