Skip to content

Some powershell-scripts for backup and import Microsoft Language Studio projects via REST-API

License

Notifications You must be signed in to change notification settings

andreas-sommer-engenious/language-studio-backup-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backup or Import some QnA- and CLU-Projects from Microsoft Language Studio and back

When you create a project with Microsoft Language Studio, you inevitably need automated backups in the form of pipelines. Here you have to use the Language Studio REST API to create full-fledged backups. Here are a few helpful scripts for creating backup pipelines for the Microsoft Language Studio.

Features

There are 3 different Powershell scripts intended for different applications:

* Export_QnA_CLU.ps1 * Import_QnA_CLU.ps1 * Train_CLU.ps1

Export_QnA_CLU.ps1

Export a Question and Answering or Conversational Language Understanding project from Microsoft Language Studio.

Import_QnA_CLU.ps1

Import a Question and Answering or Conversational Language Understanding project to Microsoft Language Studio.

Train_CLU.ps1

Train a Conversational Language Understanding project in Microsoft Language Studio.

Usage

Export_QnA_CLU.ps1

Examples QnA:

Export_QnA_CLU.ps1 -ApiURL "https://lanuage-rc.cognitiveservices.azure.com/language/authoring/query-knowledgebases/projects/QnA-Test/:export?stringIndexType=Utf16CodeUnit&api-version=2023-04-01&format=json" -SubscriptionKey "d1234c456d789" -FilePath "C:\Workspace\qna.json"

Examples CLU:

Export_QnA_CLU.ps1 -ApiURL "https://lanuage-rc.cognitiveservices.azure.com/language/authoring/analyze-conversations/projects/CLU-Test/:export?stringIndexType=Utf16CodeUnit&api-version=2023-04-01&format=json" -SubscriptionKey "d1234c456d789" -FilePath "C:\Workspace\clu.json"

Import_QnA_CLU.ps1

Examples QnA:

Import_QnA_CLU.ps1 -ApiURL "https://lanuage-rc.cognitiveservices.azure.com/language/authoring/query-knowledgebases/projects/QnA-Test/:import?stringIndexType=Utf16CodeUnit&api-version=2023-04-01&format=json" -SubscriptionKey "d1234c456d789" -FilePath "C:\Workspace\qna.json"

Examples CLU:

Import_QnA_CLU.ps1 -ApiURL "https://lanuage-rc.cognitiveservices.azure.com/language/authoring/analyze-conversations/projects/CLU-Test/:import?stringIndexType=Utf16CodeUnit&api-version=2023-04-01&format=json" -SubscriptionKey "d1234c456d789" -FilePath "C:\Workspace\clu.json"

Train_CLU.ps1

Examples:

Train_CLU.ps1 -ApiURL "https://lanuage-rc.cognitiveservices.azure.com/language/authoring/analyze-conversations/projects/CLU-Test/:train?stringIndexType=Utf16CodeUnit&api-version=2023-04-01" -SubscriptionKey "d1234c456d789"

About

Some powershell-scripts for backup and import Microsoft Language Studio projects via REST-API

Resources

License

Stars

Watchers

Forks