[NET 6 Attribute Conversion] NaturalLanguage (#13997)

* Remove existing attributes

* Attribute Conversion

* reverting changes to NaturalLanguage/Enums.cs

Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
This commit is contained in:
TJ Lambert 2022-02-02 06:15:59 -06:00 коммит произвёл GitHub
Родитель 241d821983
Коммит f4e2c3b28a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 12 добавлений и 6 удалений

Просмотреть файл

@ -10,12 +10,15 @@ namespace NaturalLanguage {
public partial class NLModel {
#if NET
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("tvos14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[SupportedOSPlatform ("macos11.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
#else
[Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)]
[Watch (7,0)]
[TV (14,0)]
[Mac (11,0)]
[iOS (14,0)]
[MacCatalyst (14,0)]
#endif
public Dictionary<NLLanguage, double> GetPredictedLabelHypotheses (string @string, nuint maximumCount)
@ -25,12 +28,15 @@ namespace NaturalLanguage {
}
#if NET
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("tvos14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[SupportedOSPlatform ("macos11.0")]
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
#else
[Watch (7,0), TV (14,0), Mac (11,0), iOS (14,0)]
[Watch (7,0)]
[TV (14,0)]
[Mac (11,0)]
[iOS (14,0)]
[MacCatalyst (14,0)]
#endif
public Dictionary<NLLanguage, double>[] GetPredictedLabelHypotheses (string[] tokens, nuint maximumCount)