Public/TextAnalytics/Get-KeyPhrase.ps1
Function Get-KeyPhrase { [alias("KeyPh")] [cmdletbinding()] param( [Parameter(Mandatory, Position = 0)] [ValidateNotNullOrEmpty()] [System.String[]] $Text ) begin { } process { $Object = @() if (Test-LocalConfiguration -ServiceName 'TextAnalytics') { $Object = [TextAnalytics]::new($env:API_SubscriptionKey_TextAnalytics, $env:API_Location_TextAnalytics) $Object.getKeyPhrase($Text) } Remove-Variable -Name Object } end { } } Export-ModuleMember -Function Get-KeyPhrase -Alias KeyPh |