< Back
Split-IntoWords
Post
NAME Split-IntoWords
SYNOPSIS
Cmdlet is capable of inserting spaces in words that lack spaces.
SYNTAX
Split-IntoWords [-String] <String> [<CommonParameters>]
DESCRIPTION
Insert spaces into a string of words lacking spaces, like a hashtag or part of a URL. Punctuation or exotic
characters can prevent a string from being broken.
So it's best to limit input strings to lower-case, alpha-numeric characters.
NOTE : You need to subscribe the "Web language Model API (WebLM)" before using this powershell script from the
following link and setup an environment variable like, $env:MS_WebLM_API_key = "YOUR API KEY"
API Subscription Page - https://www.microsoft.com/cognitive-ser ... us/sign-up
PARAMETERS
-String <String>
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS Root\\>"ilovepowershell", "Helloworld" | Split-IntoWords
Original Formatted
-------- ---------
ilovepowershell i love powershell
Helloworld hello world
RELATED LINKS
SYNOPSIS
Cmdlet is capable of inserting spaces in words that lack spaces.
SYNTAX
Split-IntoWords [-String] <String> [<CommonParameters>]
DESCRIPTION
Insert spaces into a string of words lacking spaces, like a hashtag or part of a URL. Punctuation or exotic
characters can prevent a string from being broken.
So it's best to limit input strings to lower-case, alpha-numeric characters.
NOTE : You need to subscribe the "Web language Model API (WebLM)" before using this powershell script from the
following link and setup an environment variable like, $env:MS_WebLM_API_key = "YOUR API KEY"
API Subscription Page - https://www.microsoft.com/cognitive-ser ... us/sign-up
PARAMETERS
-String <String>
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS Root\\>"ilovepowershell", "Helloworld" | Split-IntoWords
Original Formatted
-------- ---------
ilovepowershell i love powershell
Helloworld hello world
RELATED LINKS