Salience.GetDocumentClasses

<< Salience.GetDocumentCategories | Back to Salience 6 .Net Index | Salience.GetNamedEntities >>

Summary

Retrieves the classifications for a document based on the provided classification model.
The id parameter is an optional parameter to specify which configuration to return results for. Content can be processed by multiple configurations in one pass by prior calls to Salience.AddSalienceConfiguration. Omitting this parameter or passing an empty string returns results based on the default configuration.
This method is a a wrapper around the underlying C API method lxaGetDocumentClasses.

Syntax

public List<SalienceTopic> GetDocumentClasses(String modelPath, String id="")

Parameters

modelPath The path to a classification model to use.
id Optional: The identifier for a specific configuration for results.

Returns

If successful, a List<> of SalienceTopic objects is returned. Otherwise, an exception is thrown with information about the failure.

Example

TODO: Example needed for Salience 6

<< Salience.GetDocumentCategories | Back to Salience 6 .Net Index | Salience.GetNamedEntities >>