Show / Hide Table of Contents

Class CategoryGuessing

Implementation of AI functions for category guessing

Inheritance
object
CategoryGuessing
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.AI
Assembly: SoDataBase.BusinessLogic.dll
Syntax
[SoInject("Database")]
public class CategoryGuessing

Constructors

CategoryGuessing()

Implementation of AI functions for category guessing

Declaration
public CategoryGuessing()

Methods

GetCategorizationRequestItemAsync(int, CancellationToken)

Get the data required by the Category Guesser

Declaration
public Task<CategoryGuessing.CategorizationRequestItem> GetCategorizationRequestItemAsync(int ticketId, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int ticketId
CancellationToken cancellationToken
Returns
Type Description
Task<CategoryGuessing.CategorizationRequestItem>

GetCategorizationTrainingItemsAsync(int, int, int, CancellationToken)

The category guesser training API will be called with an array of CategorizationTrainingItem during the (background, Batch) execution of this call

Declaration
public IAsyncEnumerable<CategoryGuessing.CategorizationTrainingItem> GetCategorizationTrainingItemsAsync(int selectionId, int maxItems, int maxTextLength, CancellationToken cancellationToken = default)
Parameters
Type Name Description
int selectionId

Id of selection of tickets, to retrieve training data from

int maxItems

Maximum number of tickets to retrieve data from

int maxTextLength

Maximum length of PlainTextBody or any other large text, truncated to nearest word boundary

CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<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)
Converters.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top