C# Class Sparc.TagCloud.TagCloudAnalyzer

Analyzes a batch of text to produce a tag-cloud.
Show file Open project: chrisdavies/Sparc.TagCloud Class Usage Examples

Public Methods

Method Description
ComputeTagCloud ( IEnumerable phrases ) : IEnumerable

Computes the tag cloud from a set of phrases.

TagCloudAnalyzer ( TagCloudSetting setting = null ) : System

Initializes a new instance of the TagCloudAnalyzer class.

Private Methods

Method Description
CountWords ( string phrase, int>.Dictionary dict ) : void
ExtractAndCountWords ( IEnumerable phrases, int>.Dictionary dict ) : void
SortAndFilterResults ( int>.Dictionary dict ) : IEnumerable

Method Details

ComputeTagCloud() public method

Computes the tag cloud from a set of phrases.
public ComputeTagCloud ( IEnumerable phrases ) : IEnumerable
phrases IEnumerable /// The phrases used to compute the tag cloud ///
return IEnumerable

TagCloudAnalyzer() public method

Initializes a new instance of the TagCloudAnalyzer class.
public TagCloudAnalyzer ( TagCloudSetting setting = null ) : System
setting TagCloudSetting /// The settings which dictate the analyzer's behavior. ///
return System