ICategorizerService

public interface ICategorizerService<P extends IParseUnit, A extends IAnalyzeUnit, F>

Interface for categorization of parse and analysis results.

Parameters:
  • <P> – Type of parse units
  • <A> – Type of analyze units.
  • <F> – Type of fragments.

Methods

categorize

Iterable<IRegionCategory<F>> categorize(ILanguageImpl langImpl, P result)

Returns a categorization of given parse result.

Parameters:
  • langImpl – Language implementation that contains the categorization logic.
  • parseResult – Parse result to categorize.
Returns:

Iterable over categories assigned to regions of the source text. Regions do not overlap and are iterated over in ascending order.

categorize

Iterable<IRegionCategory<F>> categorize(ILanguageImpl langImpl, A result)

Returns a categorization of given analysis result.

Parameters:
  • langImpl – Language implementation that contains the categorization logic.
  • analysisResult – Analysis result to categorize.
Returns:

Iterable over categories assigned to regions of the source text. Regions do not overlap and are iterated over in ascending order.