[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:
Родитель
241d821983
Коммит
f4e2c3b28a
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче