Resolve WES-181 "Missing code doc"
This commit is contained in:
committed by
Louis Adriaens
parent
7505ae7262
commit
3d99184717
@@ -2,6 +2,7 @@ using NatML;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
/// <summary>
|
||||
/// This scriptable will hold tupples of Courseindices and models
|
||||
/// </summary>
|
||||
@@ -33,7 +34,6 @@ public class ModelList : ScriptableObject
|
||||
public TextAsset embeddingsFile;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A list of all the models
|
||||
/// </summary>
|
||||
@@ -61,7 +61,6 @@ public class ModelList : ScriptableObject
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Function to check if the modelIndex has been set
|
||||
/// </summary>
|
||||
@@ -80,11 +79,19 @@ public class ModelList : ScriptableObject
|
||||
currentModelIndex = models.FindIndex((m) => m.index == index);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Shortcut for getting the index of the current model
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public ModelIndex GetCurrentModelIndex()
|
||||
{
|
||||
return models[currentModelIndex].index;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Shortcut for getting the embeddings TextAsset of the current model
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public TextAsset GetEmbeddings()
|
||||
{
|
||||
return models[currentModelIndex].embeddingsFile;
|
||||
|
||||
Reference in New Issue
Block a user