{"id":25059743,"url":"https://github.com/glav/cognitiveservicescli","last_synced_at":"2025-03-31T10:35:25.687Z","repository":{"id":68897441,"uuid":"294295714","full_name":"glav/CognitiveServicesCLI","owner":"glav","description":"A Command line interface way of interacting with Azure Cognitive Services","archived":false,"fork":false,"pushed_at":"2020-10-06T06:32:32.000Z","size":1935,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"trunk","last_synced_at":"2025-02-06T15:46:03.479Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/glav.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-10T03:45:44.000Z","updated_at":"2020-10-09T02:47:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"46e915f0-6e1f-4709-b9ef-d3e501bd7078","html_url":"https://github.com/glav/CognitiveServicesCLI","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glav%2FCognitiveServicesCLI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glav%2FCognitiveServicesCLI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glav%2FCognitiveServicesCLI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glav%2FCognitiveServicesCLI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glav","download_url":"https://codeload.github.com/glav/CognitiveServicesCLI/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246454668,"owners_count":20780179,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-06T15:36:30.267Z","updated_at":"2025-03-31T10:35:25.672Z","avatar_url":"https://github.com/glav.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CognitiveServicesCLI\nA Command line interface way of interacting with Azure Cognitive Services.\nNote that it is very early days for this project which currently only supports TextAnalytics. Available in Windows, Linux and MacOs builds.\n\n\n## Examples\n##### Simple use of TextAnalytics Sentiment analysis to output results in JSON format.\n![Examples-simple](./Documentation/azCogSvc-SimpleJson.gif)\n\n##### Use of TextAnalytics Sentiment analysis and Keyphrase analysis to output results in TABLE format.\n![Examples-simple](./Documentation/azCogSvc-Table.gif)\n\n## Usage\n```\ndotnet run -- --location WestUS -k {api-key} -ta -sa -txt \"Sunday has been a lovely day of relaxation. I managed to plant some vegetables and herbs before the rain\" -ka\n```\n\nThe above syntax is:\n* --location = location of the Azure Cognitive service (can be --location or -l)\n* -k = API Key of the Azure service (can be --key or -k)\n* -ta = Use text analytics series of options (currently only one supported with -cv Computer vision coming next)\n* -sa = Peform sentiment analysis\n* -txt = The text to analyse\n* -ka = Perform keyphrase analysis\n* -ld = Perform language detection\n\nThis yields the following results (note: this is only preliminary form, and will typically outout in Json, table or CSV like the Azure CLI)\n\n```\n\u003e\u003e Sentiment Analysis \u003c\u003c\nDocumentSetId\n-------------\n0\n        Id      Score                   Sentiment\n        --      -----                   ---------\n\n        1       0.9565765857696530      Positive\n        2       0.5000000000000000      Neutral\n```\n\nYou can also specify a file to read intead of supplying the actual text.\n ```\ndotnet run -- --location WestUS -k {api-key} -ta -sa -f \"c:\\temp\\testfile.txt\" -ka\n``` \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglav%2Fcognitiveservicescli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglav%2Fcognitiveservicescli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglav%2Fcognitiveservicescli/lists"}