PHI-Model-8B/PHI.Data.Generator/RLHF.Generator/TrainingData/TrainingCategoryValue.cs

20 lines
564 B
C#

using System.Collections.ObjectModel;
namespace RLHF.Generator.TrainingData;
public sealed record TrainingCategoryValue
{
public TrainingCategoryValue(string canonicalForm, IReadOnlyList<string> allowedForms)
{
ArgumentException.ThrowIfNullOrWhiteSpace(canonicalForm);
ArgumentNullException.ThrowIfNull(allowedForms);
CanonicalForm = canonicalForm;
AllowedForms = new ReadOnlyCollection<string>([.. allowedForms]);
}
public string CanonicalForm { get; }
public IReadOnlyList<string> AllowedForms { get; }
}