Building Stanford POS Tagger from source package

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

ใส่ความเห็น

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / เปลี่ยนแปลง )

Twitter picture

You are commenting using your Twitter account. Log Out / เปลี่ยนแปลง )

Facebook photo

You are commenting using your Facebook account. Log Out / เปลี่ยนแปลง )

Google+ photo

You are commenting using your Google+ account. Log Out / เปลี่ยนแปลง )

Connecting to %s