File: NasBert\BertTaskType.cs
Web Access
Project: src\src\Microsoft.ML.TorchSharp\Microsoft.ML.TorchSharp.csproj (Microsoft.ML.TorchSharp)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
 
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
 
namespace Microsoft.ML.TorchSharp.NasBert
{
    /// <summary>
    /// These are taken from the TorchSharp model we are implementing.
    /// </summary>
    public enum BertTaskType
    {
        None = 0,
        MaskedLM = 1,
        TextClassification = 2,
        SentenceRegression = 3,
        NamedEntityRecognition = 4,
        [Obsolete("Please use NamedEntityRecognition instead", false)]
        [EditorBrowsable(EditorBrowsableState.Never)]
        NameEntityRecognition = NamedEntityRecognition,
        QuestionAnswering = 5
    }
}