Package miopia :: Package tagger :: Module AbstractTagger :: Class AbstractTagger
[hide private]
[frames] | no frames]

Class AbstractTagger

source code

object --+
         |
        AbstractTagger
Known Subclasses:

An abstract wrapper to build NLTK-based taggers

Instance Methods [hide private]
 
dis_accentuate(self, l)
Returns: l without any accents.
source code
 
get_training_set(self, train_file, finetag=True)
Returns: A list of [(word,tag)]
source code
 
get_gold_set(self, gold_file, finetag=True)
Returns: A list of [(word,tag)]
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

dis_accentuate(self, l)

source code 
Parameters:
  • l - A string.
Returns:
l without any accents.

get_training_set(self, train_file, finetag=True)

source code 
Parameters:
  • finetag - If true, get_training_set will return fine tags, not coarse tags
  • train_file - A path to a training set in CoNLL-X format
Returns:
A list of [(word,tag)]

Precondition: train_file had to be created previously

get_gold_set(self, gold_file, finetag=True)

source code 
Parameters:
  • finetag - If true, get_training_set will return fine tags, not coarse tags
  • gold_file - A path to a test set in CoNLL-X format
Returns:
A list of [(word,tag)]

Precondition: goldFile had to be created previously