C# Class ABB.Swum.ExternalProcessTagger

A part-of-speech tagger
Show file Open project: abb-iss/Swum.NET

Public Methods

Method Description
ExternalProcessTagger ( ) : System

Creates a new ExternalProcessTagger with the default program path and arguments.

ExternalProcessTagger ( string programFileName, string programArguments ) : System

Creates a new ExternalProcessTagger with the specified program path and arguments.

Tag ( ICollection words ) : List>.Dictionary

Calls an external part-of-speech tagger and runs it on each of the supplied words. Note that each call of this method creates (and cleans up) a separate process running the POS tagger. For performance reasons, it is better to tag words in large batches, rather than small, frequent batches.

Method Details

ExternalProcessTagger() public method

Creates a new ExternalProcessTagger with the default program path and arguments.
public ExternalProcessTagger ( ) : System
return System

ExternalProcessTagger() public method

Creates a new ExternalProcessTagger with the specified program path and arguments.
public ExternalProcessTagger ( string programFileName, string programArguments ) : System
programFileName string The path to the part-of-speech tagger executable.
programArguments string Command-line arguments to be passed to the part-of-speech tagger, not including input and output arguments.
return System

Tag() public method

Calls an external part-of-speech tagger and runs it on each of the supplied words. Note that each call of this method creates (and cleans up) a separate process running the POS tagger. For performance reasons, it is better to tag words in large batches, rather than small, frequent batches.
public Tag ( ICollection words ) : List>.Dictionary
words ICollection A collection of words to be tagged
return List>.Dictionary