Class CategoryGuessing
Implementation of AI functions for category guessing
Inherited Members
Namespace: SuperOffice.CRM.AI
Assembly: SoDataBase.dll
Syntax
[SoInject("Database")]
public class CategoryGuessing
Constructors
CategoryGuessing()
Declaration
public CategoryGuessing()
Methods
GetCategorizationRequestItem(Int32)
Get the data required by the Category Guesser
Declaration
public CategoryGuessing.CategorizationRequestItem GetCategorizationRequestItem(int ticketId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | ticketId |
Returns
Type | Description |
---|---|
CategoryGuessing.CategorizationRequestItem |
GetCategorizationTrainingItems(Int32, Int32, Int32)
The category guesser training API will be called with an array of CategorizationTrainingItem during the (background, Batch) execution of this call
Declaration
public List<CategoryGuessing.CategorizationTrainingItem> GetCategorizationTrainingItems(int selectionId, int maxItems, int maxTextLength)
Parameters
Type | Name | Description |
---|---|---|
Int32 | selectionId | Id of selection of tickets, to retrieve training data from |
Int32 | maxItems | Maximum number of tickets to retrieve data from |
Int32 | maxTextLength | Maximum length of PlainTextBody or any other large text, truncated to nearest word boundary |
Returns
Type | Description |
---|---|
List<CategoryGuessing.CategorizationTrainingItem> | Placeholder for result... should this be a BatchTaskId? maybe not useful? |
Remarks
See class diagram in Modelling\Diagrams\Ticket_Message.cd for the database structure that's referred here
Extension Methods
EnumUtil.MapEnums<From, To>(From)