Does anyone know how to configure the hunpos wrapper class on nltk?
问题 i've tried the following code and installed from http://code.google.com/p/hunpos/downloads/list english-wsj-1.0 hunpos-1.0-linux.tgz i've extracted the file onto '~/' directory and when i tried the following python code: import nltk from nltk.tag import hunpos from nltk.tag.hunpos import HunposTagger import os, sys, re, glob cwd = os.getcwd() for infile in glob.glob(os.path.join(cwd, '*.txt')): (PATH, FILENAME) = os.path.split(infile) read = open(infile) ht = HunposTagger('english.model') ht