├── .bumpversion.cfg ├── .github ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── ISSUE_TEMPLATE.md ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── PULL_REQUEST_TEMPLATE.md ├── stale.yml └── workflows │ ├── build-test.yml │ ├── deploy.yml │ └── integration-test.yml ├── .gitignore ├── .releaserc ├── .secrets.baseline ├── .utility └── generate_html.ps1 ├── CHANGELOG.md ├── Doxyfile ├── IBM.Watson.sln ├── LICENSE ├── MIGRATION-V4.md ├── MIGRATION-V5.md ├── README.md ├── appveyor.yml.dnr ├── coverage.ps1 ├── docker ├── Dockerfile └── README.md ├── package-lock.json └── src ├── IBM.Watson.Assistant.v1 ├── AssistantService.cs ├── Examples │ ├── IBM.Watson.Assistant.v1.Examples.csproj │ └── ServiceExample.cs ├── IAssistantService.cs ├── IBM.Watson.Assistant.v1.csproj ├── Model │ ├── AgentAvailabilityMessage.cs │ ├── BulkClassifyOutput.cs │ ├── BulkClassifyResponse.cs │ ├── BulkClassifyUtterance.cs │ ├── CaptureGroup.cs │ ├── ChannelTransferInfo.cs │ ├── ChannelTransferTarget.cs │ ├── ChannelTransferTargetChat.cs │ ├── Context.cs │ ├── Counterexample.cs │ ├── CounterexampleCollection.cs │ ├── CreateEntity.cs │ ├── CreateIntent.cs │ ├── CreateValue.cs │ ├── DialogNode.cs │ ├── DialogNodeAction.cs │ ├── DialogNodeCollection.cs │ ├── DialogNodeContext.cs │ ├── DialogNodeNextStep.cs │ ├── DialogNodeOutput.cs │ ├── DialogNodeOutputConnectToAgentTransferInfo.cs │ ├── DialogNodeOutputGeneric.cs │ ├── DialogNodeOutputGenericDialogNodeOutputResponseTypeAudio.cs │ ├── DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer.cs │ ├── DialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent.cs │ ├── DialogNodeOutputGenericDialogNodeOutputResponseTypeIframe.cs │ ├── DialogNodeOutputGenericDialogNodeOutputResponseTypeImage.cs │ ├── DialogNodeOutputGenericDialogNodeOutputResponseTypeOption.cs │ ├── DialogNodeOutputGenericDialogNodeOutputResponseTypePause.cs │ ├── DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill.cs │ ├── DialogNodeOutputGenericDialogNodeOutputResponseTypeText.cs │ ├── DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined.cs │ ├── DialogNodeOutputGenericDialogNodeOutputResponseTypeVideo.cs │ ├── DialogNodeOutputModifiers.cs │ ├── DialogNodeOutputOptionsElement.cs │ ├── DialogNodeOutputOptionsElementValue.cs │ ├── DialogNodeOutputTextValuesElement.cs │ ├── DialogNodeVisitedDetails.cs │ ├── DialogSuggestion.cs │ ├── DialogSuggestionValue.cs │ ├── Entity.cs │ ├── EntityCollection.cs │ ├── EntityMention.cs │ ├── EntityMentionCollection.cs │ ├── Example.cs │ ├── ExampleCollection.cs │ ├── Intent.cs │ ├── IntentCollection.cs │ ├── Log.cs │ ├── LogCollection.cs │ ├── LogMessage.cs │ ├── LogMessageSource.cs │ ├── LogPagination.cs │ ├── Mention.cs │ ├── MessageContextMetadata.cs │ ├── MessageInput.cs │ ├── MessageRequest.cs │ ├── MessageResponse.cs │ ├── OutputData.cs │ ├── Pagination.cs │ ├── ResponseGenericChannel.cs │ ├── RuntimeEntity.cs │ ├── RuntimeEntityAlternative.cs │ ├── RuntimeEntityInterpretation.cs │ ├── RuntimeEntityRole.cs │ ├── RuntimeIntent.cs │ ├── RuntimeResponseGeneric.cs │ ├── RuntimeResponseGenericRuntimeResponseTypeAudio.cs │ ├── RuntimeResponseGenericRuntimeResponseTypeChannelTransfer.cs │ ├── RuntimeResponseGenericRuntimeResponseTypeConnectToAgent.cs │ ├── RuntimeResponseGenericRuntimeResponseTypeIframe.cs │ ├── RuntimeResponseGenericRuntimeResponseTypeImage.cs │ ├── RuntimeResponseGenericRuntimeResponseTypeOption.cs │ ├── RuntimeResponseGenericRuntimeResponseTypePause.cs │ ├── RuntimeResponseGenericRuntimeResponseTypeSuggestion.cs │ ├── RuntimeResponseGenericRuntimeResponseTypeText.cs │ ├── RuntimeResponseGenericRuntimeResponseTypeUserDefined.cs │ ├── RuntimeResponseGenericRuntimeResponseTypeVideo.cs │ ├── StatusError.cs │ ├── Synonym.cs │ ├── SynonymCollection.cs │ ├── Value.cs │ ├── ValueCollection.cs │ ├── Webhook.cs │ ├── WebhookHeader.cs │ ├── Workspace.cs │ ├── WorkspaceCollection.cs │ ├── WorkspaceCounts.cs │ ├── WorkspaceSystemSettings.cs │ ├── WorkspaceSystemSettingsDisambiguation.cs │ ├── WorkspaceSystemSettingsNlp.cs │ ├── WorkspaceSystemSettingsOffTopic.cs │ ├── WorkspaceSystemSettingsSystemEntities.cs │ └── WorkspaceSystemSettingsTooling.cs └── Test │ ├── Integration │ ├── AssistantServiceIntegrationTests.cs │ └── IBM.Watson.Assistant.v1.IntegrationTests.csproj │ └── Unit │ ├── AssistantServiceGeneratedUnitTests.cs │ ├── AssistantUnitTests.cs │ ├── IBM.Watson.Assistant.v1.UnitTests.csproj │ └── Properties │ └── AssemblyInfo.cs ├── IBM.Watson.Assistant.v2 ├── AssistantService.cs ├── Examples │ ├── IBM.Watson.Assistant.v2.Examples.csproj │ └── ServiceExample.cs ├── IAssistantService.cs ├── IBM.Watson.Assistant.v2.csproj ├── Model │ ├── AgentAvailabilityMessage.cs │ ├── AssistantCollection.cs │ ├── AssistantData.cs │ ├── AssistantSkill.cs │ ├── AssistantState.cs │ ├── BaseEnvironmentOrchestration.cs │ ├── BaseEnvironmentReleaseReference.cs │ ├── BulkClassifyOutput.cs │ ├── BulkClassifyResponse.cs │ ├── BulkClassifyUtterance.cs │ ├── CaptureGroup.cs │ ├── ChannelTransferInfo.cs │ ├── ChannelTransferTarget.cs │ ├── ChannelTransferTargetChat.cs │ ├── DialogLogMessage.cs │ ├── DialogNodeAction.cs │ ├── DialogNodeOutputConnectToAgentTransferInfo.cs │ ├── DialogNodeOutputOptionsElement.cs │ ├── DialogNodeOutputOptionsElementValue.cs │ ├── DialogNodeVisited.cs │ ├── DialogSuggestion.cs │ ├── DialogSuggestionValue.cs │ ├── Environment.cs │ ├── EnvironmentCollection.cs │ ├── EnvironmentReference.cs │ ├── EnvironmentSkill.cs │ ├── IntegrationReference.cs │ ├── Log.cs │ ├── LogCollection.cs │ ├── LogMessageSource.cs │ ├── LogMessageSourceAction.cs │ ├── LogMessageSourceDialogNode.cs │ ├── LogMessageSourceHandler.cs │ ├── LogMessageSourceStep.cs │ ├── LogPagination.cs │ ├── MessageContext.cs │ ├── MessageContextGlobal.cs │ ├── MessageContextGlobalStateless.cs │ ├── MessageContextGlobalSystem.cs │ ├── MessageContextSkill.cs │ ├── MessageContextSkillAction.cs │ ├── MessageContextSkillDialog.cs │ ├── MessageContextSkillSystem.cs │ ├── MessageContextSkills.cs │ ├── MessageContextStateless.cs │ ├── MessageInput.cs │ ├── MessageInputAttachment.cs │ ├── MessageInputOptions.cs │ ├── MessageInputOptionsSpelling.cs │ ├── MessageInputOptionsStateless.cs │ ├── MessageInputStateless.cs │ ├── MessageOutput.cs │ ├── MessageOutputDebug.cs │ ├── MessageOutputDebugTurnEvent.cs │ ├── MessageOutputDebugTurnEventTurnEventActionFinished.cs │ ├── MessageOutputDebugTurnEventTurnEventActionVisited.cs │ ├── MessageOutputDebugTurnEventTurnEventCallout.cs │ ├── MessageOutputDebugTurnEventTurnEventHandlerVisited.cs │ ├── MessageOutputDebugTurnEventTurnEventNodeVisited.cs │ ├── MessageOutputDebugTurnEventTurnEventSearch.cs │ ├── MessageOutputDebugTurnEventTurnEventStepAnswered.cs │ ├── MessageOutputDebugTurnEventTurnEventStepVisited.cs │ ├── MessageOutputSpelling.cs │ ├── MessageRequest.cs │ ├── MessageResponse.cs │ ├── MessageResponseStateless.cs │ ├── Pagination.cs │ ├── Release.cs │ ├── ReleaseCollection.cs │ ├── ReleaseContent.cs │ ├── ReleaseSkill.cs │ ├── ReleaseSkillReference.cs │ ├── RequestAnalytics.cs │ ├── ResponseGenericChannel.cs │ ├── RuntimeEntity.cs │ ├── RuntimeEntityAlternative.cs │ ├── RuntimeEntityInterpretation.cs │ ├── RuntimeEntityRole.cs │ ├── RuntimeIntent.cs │ ├── RuntimeResponseGeneric.cs │ ├── RuntimeResponseGenericRuntimeResponseTypeAudio.cs │ ├── RuntimeResponseGenericRuntimeResponseTypeChannelTransfer.cs │ ├── RuntimeResponseGenericRuntimeResponseTypeConnectToAgent.cs │ ├── RuntimeResponseGenericRuntimeResponseTypeDate.cs │ ├── RuntimeResponseGenericRuntimeResponseTypeIframe.cs │ ├── RuntimeResponseGenericRuntimeResponseTypeImage.cs │ ├── RuntimeResponseGenericRuntimeResponseTypeOption.cs │ ├── RuntimeResponseGenericRuntimeResponseTypePause.cs │ ├── RuntimeResponseGenericRuntimeResponseTypeSearch.cs │ ├── RuntimeResponseGenericRuntimeResponseTypeSuggestion.cs │ ├── RuntimeResponseGenericRuntimeResponseTypeText.cs │ ├── RuntimeResponseGenericRuntimeResponseTypeUserDefined.cs │ ├── RuntimeResponseGenericRuntimeResponseTypeVideo.cs │ ├── SearchResult.cs │ ├── SearchResultAnswer.cs │ ├── SearchResultHighlight.cs │ ├── SearchResultMetadata.cs │ ├── SearchSettings.cs │ ├── SearchSettingsDiscovery.cs │ ├── SearchSettingsDiscoveryAuthentication.cs │ ├── SearchSettingsMessages.cs │ ├── SearchSettingsSchemaMapping.cs │ ├── SearchSkillWarning.cs │ ├── SessionResponse.cs │ ├── Skill.cs │ ├── SkillImport.cs │ ├── SkillsAsyncRequestStatus.cs │ ├── SkillsExport.cs │ ├── StatusError.cs │ ├── TurnEventActionSource.cs │ ├── TurnEventCalloutCallout.cs │ ├── TurnEventCalloutError.cs │ ├── TurnEventNodeSource.cs │ └── TurnEventSearchError.cs └── Test │ ├── Integration │ ├── AssistantServiceIntegrationConfigTests.cs │ ├── AssistantServiceIntegrationTests.cs │ └── IBM.Watson.Assistant.v2.IntegrationTests.csproj │ └── Unit │ ├── AssistantServiceGeneratedUnitTests.cs │ ├── AssistantV2UnitTests.cs │ └── IBM.Watson.Assistant.v2.UnitTests.csproj ├── IBM.Watson.Common ├── Common.cs └── IBM.Watson.Common.csproj ├── IBM.Watson.Discovery.v1 ├── DiscoveryService.cs ├── Examples │ ├── DiscoveryTestData │ │ ├── exampleConfigurationData.json │ │ ├── stopwords.txt │ │ ├── watson_beats_jeopardy.html │ │ └── watson_beats_jeopardy.txt │ ├── IBM.Watson.Discovery.v1.Examples.csproj │ └── ServiceExample.cs ├── IBM.Watson.Discovery.v1.csproj ├── IDiscoveryService.cs ├── Model │ ├── Collection.cs │ ├── CollectionCrawlStatus.cs │ ├── CollectionDiskUsage.cs │ ├── CollectionUsage.cs │ ├── Completions.cs │ ├── Configuration.cs │ ├── Conversions.cs │ ├── CreateEventResponse.cs │ ├── CredentialDetails.cs │ ├── Credentials.cs │ ├── CredentialsList.cs │ ├── DeleteCollectionResponse.cs │ ├── DeleteConfigurationResponse.cs │ ├── DeleteCredentials.cs │ ├── DeleteDocumentResponse.cs │ ├── DeleteEnvironmentResponse.cs │ ├── DiskUsage.cs │ ├── DocumentAccepted.cs │ ├── DocumentCounts.cs │ ├── DocumentStatus.cs │ ├── Enrichment.cs │ ├── EnrichmentOptions.cs │ ├── Environment.cs │ ├── EnvironmentDocuments.cs │ ├── EventData.cs │ ├── Expansion.cs │ ├── Expansions.cs │ ├── Field.cs │ ├── FontSetting.cs │ ├── Gateway.cs │ ├── GatewayDelete.cs │ ├── GatewayList.cs │ ├── HtmlSettings.cs │ ├── IndexCapacity.cs │ ├── ListCollectionFieldsResponse.cs │ ├── ListCollectionsResponse.cs │ ├── ListConfigurationsResponse.cs │ ├── ListEnvironmentsResponse.cs │ ├── LogQueryResponse.cs │ ├── LogQueryResponseResult.cs │ ├── LogQueryResponseResultDocuments.cs │ ├── LogQueryResponseResultDocumentsResult.cs │ ├── MetricAggregation.cs │ ├── MetricAggregationResult.cs │ ├── MetricResponse.cs │ ├── MetricTokenAggregation.cs │ ├── MetricTokenAggregationResult.cs │ ├── MetricTokenResponse.cs │ ├── NluEnrichmentConcepts.cs │ ├── NluEnrichmentEmotion.cs │ ├── NluEnrichmentEntities.cs │ ├── NluEnrichmentFeatures.cs │ ├── NluEnrichmentKeywords.cs │ ├── NluEnrichmentRelations.cs │ ├── NluEnrichmentSemanticRoles.cs │ ├── NluEnrichmentSentiment.cs │ ├── NormalizationOperation.cs │ ├── Notice.cs │ ├── PdfHeadingDetection.cs │ ├── PdfSettings.cs │ ├── QueryAggregation.cs │ ├── QueryCalculationAggregation.cs │ ├── QueryFilterAggregation.cs │ ├── QueryHistogramAggregation.cs │ ├── QueryHistogramAggregationResult.cs │ ├── QueryNestedAggregation.cs │ ├── QueryNoticesResponse.cs │ ├── QueryNoticesResult.cs │ ├── QueryPassages.cs │ ├── QueryResponse.cs │ ├── QueryResult.cs │ ├── QueryResultMetadata.cs │ ├── QueryTermAggregation.cs │ ├── QueryTermAggregationResult.cs │ ├── QueryTimesliceAggregation.cs │ ├── QueryTimesliceAggregationResult.cs │ ├── QueryTopHitsAggregation.cs │ ├── QueryTopHitsAggregationResult.cs │ ├── RetrievalDetails.cs │ ├── SduStatus.cs │ ├── SduStatusCustomFields.cs │ ├── SearchStatus.cs │ ├── SegmentSettings.cs │ ├── Source.cs │ ├── SourceOptions.cs │ ├── SourceOptionsBuckets.cs │ ├── SourceOptionsFolder.cs │ ├── SourceOptionsObject.cs │ ├── SourceOptionsSiteColl.cs │ ├── SourceOptionsWebCrawl.cs │ ├── SourceSchedule.cs │ ├── SourceStatus.cs │ ├── StatusDetails.cs │ ├── TokenDictRule.cs │ ├── TokenDictStatusResponse.cs │ ├── TopHitsResults.cs │ ├── TrainingDataSet.cs │ ├── TrainingExample.cs │ ├── TrainingExampleList.cs │ ├── TrainingQuery.cs │ ├── TrainingStatus.cs │ ├── WordHeadingDetection.cs │ ├── WordSettings.cs │ ├── WordStyle.cs │ └── XPathPatterns.cs └── Test │ ├── Integration │ ├── DiscoveryCpdIntegrationTests.cs │ ├── DiscoveryIntegrationTests.cs │ ├── DiscoveryTestData │ │ ├── exampleConfigurationData.json │ │ ├── stopwords.txt │ │ ├── watson_beats_jeopardy.html │ │ └── watson_beats_jeopardy.txt │ ├── IBM.Watson.Discovery.v1.IntegrationTests.csproj │ └── Properties │ │ └── AssemblyInfo.cs │ └── Unit │ ├── DiscoveryServiceGeneratedUnitTests.cs │ ├── DiscoveryUnitTests.cs │ ├── IBM.Watson.Discovery.v1.UnitTests.csproj │ └── Properties │ └── AssemblyInfo.cs ├── IBM.Watson.Discovery.v2 ├── DiscoveryService.cs ├── Examples │ ├── IBM.Watson.Discovery.v2.Examples.csproj │ └── ServiceExample.cs ├── IBM.Watson.Discovery.v2.csproj ├── IDiscoveryService.cs ├── Model │ ├── AnalyzedDocument.cs │ ├── AnalyzedResult.cs │ ├── ClassifierFederatedModel.cs │ ├── ClassifierModelEvaluation.cs │ ├── Collection.cs │ ├── CollectionDetails.cs │ ├── CollectionDetailsSmartDocumentUnderstanding.cs │ ├── CollectionEnrichment.cs │ ├── Completions.cs │ ├── ComponentSettingsAggregation.cs │ ├── ComponentSettingsFieldsShown.cs │ ├── ComponentSettingsFieldsShownBody.cs │ ├── ComponentSettingsFieldsShownTitle.cs │ ├── ComponentSettingsResponse.cs │ ├── CreateDocumentClassifier.cs │ ├── CreateEnrichment.cs │ ├── DefaultQueryParams.cs │ ├── DefaultQueryParamsPassages.cs │ ├── DefaultQueryParamsSuggestedRefinements.cs │ ├── DefaultQueryParamsTableResults.cs │ ├── DeleteDocumentResponse.cs │ ├── DocumentAccepted.cs │ ├── DocumentAttribute.cs │ ├── DocumentClassifier.cs │ ├── DocumentClassifierEnrichment.cs │ ├── DocumentClassifierModel.cs │ ├── DocumentClassifierModels.cs │ ├── DocumentClassifiers.cs │ ├── DocumentDetails.cs │ ├── DocumentDetailsChildren.cs │ ├── Enrichment.cs │ ├── EnrichmentOptions.cs │ ├── Enrichments.cs │ ├── Expansion.cs │ ├── Expansions.cs │ ├── Field.cs │ ├── ListCollectionsResponse.cs │ ├── ListDocumentsResponse.cs │ ├── ListFieldsResponse.cs │ ├── ListProjectsResponse.cs │ ├── ModelEvaluationMacroAverage.cs │ ├── ModelEvaluationMicroAverage.cs │ ├── Notice.cs │ ├── PerClassModelEvaluation.cs │ ├── ProjectDetails.cs │ ├── ProjectListDetails.cs │ ├── ProjectListDetailsRelevancyTrainingStatus.cs │ ├── QueryAggregation.cs │ ├── QueryAggregationQueryCalculationAggregation.cs │ ├── QueryAggregationQueryFilterAggregation.cs │ ├── QueryAggregationQueryGroupByAggregation.cs │ ├── QueryAggregationQueryHistogramAggregation.cs │ ├── QueryAggregationQueryNestedAggregation.cs │ ├── QueryAggregationQueryPairAggregation.cs │ ├── QueryAggregationQueryTermAggregation.cs │ ├── QueryAggregationQueryTimesliceAggregation.cs │ ├── QueryAggregationQueryTopHitsAggregation.cs │ ├── QueryAggregationQueryTopicAggregation.cs │ ├── QueryAggregationQueryTrendAggregation.cs │ ├── QueryGroupByAggregationResult.cs │ ├── QueryHistogramAggregationResult.cs │ ├── QueryLargePassages.cs │ ├── QueryLargeSimilar.cs │ ├── QueryLargeSuggestedRefinements.cs │ ├── QueryLargeTableResults.cs │ ├── QueryNoticesResponse.cs │ ├── QueryPairAggregationResult.cs │ ├── QueryResponse.cs │ ├── QueryResponsePassage.cs │ ├── QueryResult.cs │ ├── QueryResultMetadata.cs │ ├── QueryResultPassage.cs │ ├── QuerySuggestedRefinement.cs │ ├── QueryTableResult.cs │ ├── QueryTermAggregationResult.cs │ ├── QueryTimesliceAggregationResult.cs │ ├── QueryTopHitsAggregationResult.cs │ ├── QueryTopicAggregationResult.cs │ ├── QueryTrendAggregationResult.cs │ ├── ResultPassageAnswer.cs │ ├── RetrievalDetails.cs │ ├── StopWordList.cs │ ├── TableBodyCells.cs │ ├── TableCellKey.cs │ ├── TableCellValues.cs │ ├── TableColumnHeaderIds.cs │ ├── TableColumnHeaderTexts.cs │ ├── TableColumnHeaderTextsNormalized.cs │ ├── TableColumnHeaders.cs │ ├── TableElementLocation.cs │ ├── TableHeaders.cs │ ├── TableKeyValuePairs.cs │ ├── TableResultTable.cs │ ├── TableRowHeaderIds.cs │ ├── TableRowHeaderTexts.cs │ ├── TableRowHeaderTextsNormalized.cs │ ├── TableRowHeaders.cs │ ├── TableTextLocation.cs │ ├── TrainingExample.cs │ ├── TrainingQuery.cs │ ├── TrainingQuerySet.cs │ └── UpdateDocumentClassifier.cs └── Test │ ├── Integration │ ├── DiscoveryIntegrationTests.cs │ ├── DiscoveryTestData │ │ ├── classification_training.csv │ │ ├── problem.json │ │ ├── test-pdf.pdf │ │ ├── test.csv │ │ └── watson_beats_jeopardy.html │ ├── IBM.Watson.Discovery.v2.IntegrationTests.csproj │ └── Properties │ │ └── AssemblyInfo.cs │ └── Unit │ ├── DiscoveryServiceGeneratedUnitTests.cs │ └── IBM.Watson.Discovery.v2.UnitTests.csproj ├── IBM.Watson.IntegrationTests ├── AdditionalPropertiesTest.cs ├── CommonIntegrationTests.cs ├── CoreIntegrationTests.cs ├── CustomHeadersTest.cs ├── IBM.Watson.IntegrationTests.csproj └── Icp4dIntegrationTests.cs ├── IBM.Watson.LanguageTranslator.v3 ├── Examples │ ├── IBM.Watson.LanguageTranslator.v3.Examples.csproj │ ├── LanguageTranslatorTestData │ │ ├── document-to-translate.txt │ │ └── glossary.tmx │ └── ServiceExample.cs ├── IBM.Watson.LanguageTranslator.v3.csproj ├── ILanguageTranslatorService.cs ├── LanguageTranslatorService.cs ├── Model │ ├── DeleteModelResult.cs │ ├── DocumentList.cs │ ├── DocumentStatus.cs │ ├── IdentifiableLanguage.cs │ ├── IdentifiableLanguages.cs │ ├── IdentifiedLanguage.cs │ ├── IdentifiedLanguages.cs │ ├── Language.cs │ ├── Languages.cs │ ├── Translation.cs │ ├── TranslationModel.cs │ ├── TranslationModels.cs │ └── TranslationResult.cs └── Test │ ├── Integration │ ├── IBM.Watson.LanguageTranslator.v3.IntegrationTests.csproj │ ├── LTServiceIntTestBasicAuthIamApikey.cs │ ├── LanguageTranslatorServiceIntegrationTests.cs │ ├── LanguageTranslatorTestData │ │ ├── document-to-translate.txt │ │ ├── glossary.tmx │ │ └── language-translation-ppt.pptx │ └── Properties │ │ └── AssemblyInfo.cs │ └── Unit │ ├── IBM.Watson.LanguageTranslator.v3.UnitTests.csproj │ ├── LanguageTranslatorServiceGeneratedUnitTests.cs │ ├── LanguageTranslatorServiceUnitTest.cs │ └── Properties │ └── AssemblyInfo.cs ├── IBM.Watson.NaturalLanguageUnderstanding.v1 ├── Examples │ ├── IBM.Watson.NLU.v1.Examples.csproj │ └── ServiceExample.cs ├── IBM.Watson.NaturalLanguageUnderstanding.v1.csproj ├── INaturalLanguageUnderstandingService.cs ├── Model │ ├── AnalysisResults.cs │ ├── AnalysisResultsUsage.cs │ ├── Author.cs │ ├── CategoriesModel.cs │ ├── CategoriesModelList.cs │ ├── CategoriesOptions.cs │ ├── CategoriesRelevantText.cs │ ├── CategoriesResult.cs │ ├── CategoriesResultExplanation.cs │ ├── ClassificationsModel.cs │ ├── ClassificationsModelList.cs │ ├── ClassificationsOptions.cs │ ├── ClassificationsResult.cs │ ├── ClassificationsTrainingParameters.cs │ ├── ConceptsOptions.cs │ ├── ConceptsResult.cs │ ├── DeleteModelResults.cs │ ├── DisambiguationResult.cs │ ├── DocumentEmotionResults.cs │ ├── DocumentSentimentResults.cs │ ├── EmotionOptions.cs │ ├── EmotionResult.cs │ ├── EmotionScores.cs │ ├── EntitiesOptions.cs │ ├── EntitiesResult.cs │ ├── EntityMention.cs │ ├── FeatureSentimentResults.cs │ ├── Features.cs │ ├── FeaturesResultsMetadata.cs │ ├── Feed.cs │ ├── KeywordsOptions.cs │ ├── KeywordsResult.cs │ ├── ListClassificationsModelsResponse.cs │ ├── ListModelsResults.cs │ ├── Model.cs │ ├── Notice.cs │ ├── RelationArgument.cs │ ├── RelationEntity.cs │ ├── RelationsOptions.cs │ ├── RelationsResult.cs │ ├── SemanticRolesEntity.cs │ ├── SemanticRolesKeyword.cs │ ├── SemanticRolesOptions.cs │ ├── SemanticRolesResult.cs │ ├── SemanticRolesResultAction.cs │ ├── SemanticRolesResultObject.cs │ ├── SemanticRolesResultSubject.cs │ ├── SemanticRolesVerb.cs │ ├── SentenceResult.cs │ ├── SentimentOptions.cs │ ├── SentimentResult.cs │ ├── SummarizationOptions.cs │ ├── SyntaxOptions.cs │ ├── SyntaxOptionsTokens.cs │ ├── SyntaxResult.cs │ ├── TargetedEmotionResults.cs │ ├── TargetedSentimentResults.cs │ └── TokenResult.cs ├── NaturalLanguageUnderstandingService.cs └── Test │ ├── Integration │ ├── IBM.Watson.NLU.v1.IntegrationTests.csproj │ ├── NaturalLanguageUnderstandingIntegrationTests.cs │ └── Properties │ │ └── AssemblyInfo.cs │ └── Unit │ ├── IBM.Watson.NaturalLanguageUnderstanding.v1.UnitTests.csproj │ ├── NaturalLanguageUnderstandingServiceGeneratedUnitTests.cs │ └── NaturalLanguageUnderstandingUnitTests.cs ├── IBM.Watson.SpeechToText.v1 ├── Examples │ ├── IBM.Watson.SpeechToText.v1.Examples.csproj │ ├── ServiceExample.cs │ └── SpeechToTextTestData │ │ ├── confirm.abnf │ │ ├── test-audio.wav │ │ └── theJabberwocky-utf8.txt ├── IBM.Watson.SpeechToText.v1.csproj ├── ISpeechToTextService.cs ├── Model │ ├── AcousticModel.cs │ ├── AcousticModels.cs │ ├── AudioDetails.cs │ ├── AudioListing.cs │ ├── AudioMetrics.cs │ ├── AudioMetricsDetails.cs │ ├── AudioMetricsHistogramBin.cs │ ├── AudioResource.cs │ ├── AudioResources.cs │ ├── Corpora.cs │ ├── Corpus.cs │ ├── CustomWord.cs │ ├── Grammar.cs │ ├── Grammars.cs │ ├── KeywordResult.cs │ ├── LanguageModel.cs │ ├── LanguageModels.cs │ ├── ProcessedAudio.cs │ ├── ProcessingMetrics.cs │ ├── RecognitionJob.cs │ ├── RecognitionJobs.cs │ ├── RegisterStatus.cs │ ├── SpeakerLabelsResult.cs │ ├── SpeechModel.cs │ ├── SpeechModels.cs │ ├── SpeechRecognitionAlternative.cs │ ├── SpeechRecognitionResult.cs │ ├── SpeechRecognitionResults.cs │ ├── SupportedFeatures.cs │ ├── TrainingResponse.cs │ ├── TrainingWarning.cs │ ├── Word.cs │ ├── WordAlternativeResult.cs │ ├── WordAlternativeResults.cs │ ├── WordError.cs │ └── Words.cs ├── SpeechToTextService.cs ├── Test │ ├── Integration │ │ ├── IBM.Watson.SpeechToText.v1.IntegrationTests.csproj │ │ ├── Properties │ │ │ └── AssemblyInfo.cs │ │ ├── SpeechToTextServiceIntegrationTest.cs │ │ └── SpeechToTextTestData │ │ │ ├── confirm.abnf │ │ │ ├── test-audio.wav │ │ │ └── theJabberwocky-utf8.txt │ └── Unit │ │ ├── IBM.Watson.SpeechToText.v1.UnitTests.csproj │ │ └── SpeechToTextServiceGeneratedUnitTests.cs └── Util │ └── MediaTypeUtils.cs └── IBM.Watson.TextToSpeech.v1 ├── Examples ├── IBM.Watson.TextToSpeech.v1.Examples.csproj └── ServiceExample.cs ├── IBM.Watson.TextToSpeech.v1.csproj ├── ITextToSpeechService.cs ├── Model ├── CustomModel.cs ├── CustomModels.cs ├── Prompt.cs ├── PromptMetadata.cs ├── Prompts.cs ├── Pronunciation.cs ├── Speaker.cs ├── SpeakerCustomModel.cs ├── SpeakerCustomModels.cs ├── SpeakerModel.cs ├── SpeakerPrompt.cs ├── Speakers.cs ├── SupportedFeatures.cs ├── Translation.cs ├── Voice.cs ├── Voices.cs ├── Word.cs └── Words.cs ├── Test ├── Integration │ ├── Assets │ │ ├── test-audio.wav │ │ └── test-stt-corpus.txt │ ├── IBM.Watson.TextToSpeech.v1.IntegrationTests.csproj │ ├── Properties │ │ └── AssemblyInfo.cs │ └── TextToSpeechServiceIntegrationTests.cs └── Unit │ ├── IBM.Watson.TextToSpeech.v1.UnitTests.csproj │ └── TextToSpeechServiceGeneratedUnitTests.cs └── TextToSpeechService.cs /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | Remember, an issue is not the place to ask questions. If you have issues with the APIs or have a question about the Watson services, see [Stack Overflow](https://stackoverflow.com/questions/tagged/ibm-watson+dotnet). 2 | 3 | Before you open an issue, please check if a similar issue already exists or has been closed before. 4 | 5 | ### When reporting a bug, please be sure to include the following: 6 | 7 | - [ ] Start the title with the service name in brackets: `[speech-to-text] websockets...` 8 | - [ ] Steps to reproduce 9 | - [ ] Expected behavior 10 | - [ ] Actual behavior 11 | - [ ] .NET SDK version 12 | 13 | ### When you open an issue for a feature request, please add as much detail as possible: 14 | - [ ] A descriptive title starting with the service name 15 | - [ ] A description of the problem you're trying to solve 16 | - [ ] A suggested solution if possible 17 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | Remember, an issue is not the place to ask questions. If you have issues with the APIs or have a question about the Watson services, see [Stack Overflow](https://stackoverflow.com/questions/tagged/ibm-watson+dotnet). 11 | 12 | Before you open an issue, please check if a similar issue already exists or has been closed before. 13 | 14 | ### When you open an issue for a feature request, please add as much detail as possible: 15 | 16 | - [ ] A descriptive title starting with the service name 17 | - [ ] A description of the problem you're trying to solve 18 | - [ ] A suggested solution if possible 19 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ### Summary 2 | 3 | Provide a general description of the code changes in your pull 4 | request... were there any bugs you had fixed? If so, mention them. If 5 | these bugs have open GitHub issues, be sure to tag them here as well, 6 | to keep the conversation linked together. 7 | 8 | ### Other Information 9 | 10 | If there's anything else that's important and relevant to your pull 11 | request, mention that information here. 12 | 13 | 14 | Thanks for contributing to the Watson Developer Cloud! -------------------------------------------------------------------------------- /.github/stale.yml: -------------------------------------------------------------------------------- 1 | # Number of days of inactivity before an issue becomes stale 2 | daysUntilStale: 60 3 | # Number of days of inactivity before a stale issue is closed 4 | daysUntilClose: 7 5 | # Issues with these labels will never be considered stale 6 | exemptLabels: 7 | - pinned 8 | - security 9 | # Label to use when marking an issue as stale 10 | staleLabel: wontfix 11 | # Comment to post when marking an issue as stale. Set to `false` to disable 12 | markComment: > 13 | This issue has been automatically marked as stale because it has had no 14 | recent activity. It will be closed if no further activity occurs. Thank you 15 | for your contributions. 16 | # Comment to post when closing a stale issue. Set to `false` to disable 17 | closeComment: false 18 | -------------------------------------------------------------------------------- /.releaserc: -------------------------------------------------------------------------------- 1 | { 2 | "branch": "master", 3 | "debug": true, 4 | "verifyConditions": [ 5 | "@semantic-release/changelog", 6 | "@semantic-release/git" 7 | ], 8 | "plugins": [ 9 | "@semantic-release/commit-analyzer", 10 | "@semantic-release/release-notes-generator", 11 | "@semantic-release/changelog", 12 | [ 13 | "@semantic-release/exec", 14 | { 15 | "prepareCmd": "bumpversion --allow-dirty --current-version ${lastRelease.version} --new-version ${nextRelease.version} patch" 16 | } 17 | ], 18 | [ 19 | "@semantic-release/git", 20 | { 21 | "message": "chore(release): ${nextRelease.version} release notes\n\n${nextRelease.notes}" 22 | } 23 | ], 24 | "@semantic-release/github" 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /docker/Dockerfile: -------------------------------------------------------------------------------- 1 | # Import .NET SDK base image (change version as needed) 2 | FROM mcr.microsoft.com/dotnet/core/sdk:2.2 3 | 4 | #Set working directory to src 5 | WORKDIR /src 6 | 7 | # Create new .net project (console project, change as needed) 8 | RUN dotnet new console 9 | 10 | # Install SDK packages 11 | RUN dotnet add package IBM.Watson.SpeechToText.v1 --version 3.3.0 && \ 12 | dotnet add package IBM.Cloud.SDK.Core --version 0.8.2 && \ 13 | dotnet add package IBM.Watson.TextToSpeech.v1 --version 3.3.0 && \ 14 | dotnet add package IBM.Watson.NaturalLanguageUnderstanding.v1 --version 3.3.0 && \ 15 | dotnet add package IBM.Watson.VisualRecognition.v3 --version 3.3.0 && \ 16 | dotnet add package IBM.Watson.NaturalLanguageClassifier.v1 --version 3.3.0 && \ 17 | dotnet add package IBM.Watson.Discovery.v1 --version 3.3.0 && \ 18 | dotnet add package IBM.Watson.LanguageTranslator.v3 --version 3.3.0 && \ 19 | dotnet add package IBM.Watson.PersonalityInsights.v3 --version 3.3.0 && \ 20 | dotnet add package IBM.Watson.ToneAnalyzer.v3 --version 3.3.0 && \ 21 | dotnet add package IBM.Watson.CompareComply.v1 --version 3.3.0 && \ 22 | dotnet add package IBM.Watson.Common --version 3.0.1 && \ 23 | dotnet add package IBM.Watson.Assistant.v1 --version 3.3.0 && \ 24 | dotnet add package IBM.Watson.Assistant.v2 --version 3.3.0 25 | -------------------------------------------------------------------------------- /docker/README.md: -------------------------------------------------------------------------------- 1 | ## Docker 2 | You can use docker to test issues you have with the SDK. 3 | 4 | 1. Install docker 5 | - Mac: 6 | - Windows: 7 | 8 | 2. Download the dockerfile for this SDK and edit as needed. 9 | - Change the .net version as needed `FROM mcr.microsoft.com/dotnet/core/sdk:` 10 | - For valid .net base images on docker see 11 | 12 | - Copy code/project that you wish to test into the dockerfile 13 | - Add line `COPY ... ` 14 | 15 | - Set dockerfile to execute code file 16 | - Add line `CMD [ "" ]` 17 | 18 | - For more information on dockerfile construction please visit 19 | 20 | 3. Build and run the docker image. 21 | - Navigate to docker file directory 22 | - To build the docker image run `docker build --tag= .` 23 | - To run the docker image run `docker run ` 24 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v1/Examples/IBM.Watson.Assistant.v1.Examples.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | net7.0 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v1/Model/AgentAvailabilityMessage.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2020. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v1.Model 21 | { 22 | /// 23 | /// AgentAvailabilityMessage. 24 | /// 25 | public class AgentAvailabilityMessage 26 | { 27 | /// 28 | /// The text of the message. 29 | /// 30 | [JsonProperty("message", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Message { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v1/Model/BulkClassifyResponse.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2020. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Assistant.v1.Model 22 | { 23 | /// 24 | /// BulkClassifyResponse. 25 | /// 26 | public class BulkClassifyResponse 27 | { 28 | /// 29 | /// An array of objects that contain classification information for the submitted input utterances. 30 | /// 31 | [JsonProperty("output", NullValueHandling = NullValueHandling.Ignore)] 32 | public List Output { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v1/Model/BulkClassifyUtterance.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2020. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v1.Model 21 | { 22 | /// 23 | /// The user input utterance to classify. 24 | /// 25 | public class BulkClassifyUtterance 26 | { 27 | /// 28 | /// The text of the input utterance. 29 | /// 30 | [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Text { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v1/Model/ChannelTransferInfo.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2021. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v1.Model 21 | { 22 | /// 23 | /// Information used by an integration to transfer the conversation to a different channel. 24 | /// 25 | public class ChannelTransferInfo 26 | { 27 | /// 28 | /// An object specifying target channels available for the transfer. Each property of this object represents an 29 | /// available transfer target. Currently, the only supported property is **chat**, representing the web chat 30 | /// integration. 31 | /// 32 | [JsonProperty("target", NullValueHandling = NullValueHandling.Ignore)] 33 | public ChannelTransferTarget Target { get; set; } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v1/Model/ChannelTransferTarget.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2021. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v1.Model 21 | { 22 | /// 23 | /// An object specifying target channels available for the transfer. Each property of this object represents an 24 | /// available transfer target. Currently, the only supported property is **chat**, representing the web chat 25 | /// integration. 26 | /// 27 | public class ChannelTransferTarget 28 | { 29 | /// 30 | /// Information for transferring to the web chat integration. 31 | /// 32 | [JsonProperty("chat", NullValueHandling = NullValueHandling.Ignore)] 33 | public ChannelTransferTargetChat Chat { get; set; } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v1/Model/ChannelTransferTargetChat.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2021. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v1.Model 21 | { 22 | /// 23 | /// Information for transferring to the web chat integration. 24 | /// 25 | public class ChannelTransferTargetChat 26 | { 27 | /// 28 | /// The URL of the target web chat. 29 | /// 30 | [JsonProperty("url", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Url { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v1/Model/DialogNodeContext.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2020. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using IBM.Cloud.SDK.Core.Model; 20 | using Newtonsoft.Json; 21 | 22 | namespace IBM.Watson.Assistant.v1.Model 23 | { 24 | /// 25 | /// The context for the dialog node. 26 | /// 27 | public class DialogNodeContext : DynamicModel 28 | { 29 | /// 30 | /// Context data intended for specific integrations. 31 | /// 32 | [JsonProperty("integrations", NullValueHandling = NullValueHandling.Ignore)] 33 | public Dictionary> Integrations { get; set; } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v1/Model/DialogNodeOutputConnectToAgentTransferInfo.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2020. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Assistant.v1.Model 22 | { 23 | /// 24 | /// Routing or other contextual information to be used by target service desk systems. 25 | /// 26 | public class DialogNodeOutputConnectToAgentTransferInfo 27 | { 28 | /// 29 | /// Gets or Sets Target 30 | /// 31 | [JsonProperty("target", NullValueHandling = NullValueHandling.Ignore)] 32 | public Dictionary> Target { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v1/Model/DialogNodeOutputModifiers.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v1.Model 21 | { 22 | /// 23 | /// Options that modify how specified output is handled. 24 | /// 25 | public class DialogNodeOutputModifiers 26 | { 27 | /// 28 | /// Whether values in the output will overwrite output values in an array specified by previously executed 29 | /// dialog nodes. If this option is set to `false`, new values will be appended to previously specified values. 30 | /// 31 | [JsonProperty("overwrite", NullValueHandling = NullValueHandling.Ignore)] 32 | public bool? Overwrite { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v1/Model/DialogNodeOutputTextValuesElement.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v1.Model 21 | { 22 | /// 23 | /// DialogNodeOutputTextValuesElement. 24 | /// 25 | public class DialogNodeOutputTextValuesElement 26 | { 27 | /// 28 | /// The text of a response. This string can include newline characters (`\n`), Markdown tagging, or other 29 | /// special characters, if supported by the channel. 30 | /// 31 | [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)] 32 | public string Text { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v1/Model/RuntimeEntityAlternative.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2020. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v1.Model 21 | { 22 | /// 23 | /// An alternative value for the recognized entity. 24 | /// 25 | public class RuntimeEntityAlternative 26 | { 27 | /// 28 | /// The entity value that was recognized in the user input. 29 | /// 30 | [JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Value { get; set; } 32 | /// 33 | /// A decimal percentage that represents Watson's confidence in the recognized entity. 34 | /// 35 | [JsonProperty("confidence", NullValueHandling = NullValueHandling.Ignore)] 36 | public float? Confidence { get; set; } 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v1/Model/StatusError.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2022. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v1.Model 21 | { 22 | /// 23 | /// An object describing an error that occurred during processing of an asynchronous operation. 24 | /// 25 | public class StatusError 26 | { 27 | /// 28 | /// The text of the error message. 29 | /// 30 | [JsonProperty("message", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Message { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v1/Model/WebhookHeader.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v1.Model 21 | { 22 | /// 23 | /// A key/value pair defining an HTTP header and a value. 24 | /// 25 | public class WebhookHeader 26 | { 27 | /// 28 | /// The name of an HTTP header (for example, `Authorization`). 29 | /// 30 | [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Name { get; set; } 32 | /// 33 | /// The value of an HTTP header. 34 | /// 35 | [JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)] 36 | public string Value { get; set; } 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v1/Model/WorkspaceSystemSettingsOffTopic.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v1.Model 21 | { 22 | /// 23 | /// Workspace settings related to detection of irrelevant input. 24 | /// 25 | public class WorkspaceSystemSettingsOffTopic 26 | { 27 | /// 28 | /// Whether enhanced irrelevance detection is enabled for the workspace. 29 | /// 30 | [JsonProperty("enabled", NullValueHandling = NullValueHandling.Ignore)] 31 | public bool? Enabled { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v1/Model/WorkspaceSystemSettingsSystemEntities.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2020. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v1.Model 21 | { 22 | /// 23 | /// Workspace settings related to the behavior of system entities. 24 | /// 25 | public class WorkspaceSystemSettingsSystemEntities 26 | { 27 | /// 28 | /// Whether the new system entities are enabled for the workspace. 29 | /// 30 | [JsonProperty("enabled", NullValueHandling = NullValueHandling.Ignore)] 31 | public bool? Enabled { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v1/Model/WorkspaceSystemSettingsTooling.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v1.Model 21 | { 22 | /// 23 | /// Workspace settings related to the Watson Assistant user interface. 24 | /// 25 | public class WorkspaceSystemSettingsTooling 26 | { 27 | /// 28 | /// Whether the dialog JSON editor displays text responses within the `output.generic` object. 29 | /// 30 | [JsonProperty("store_generic_responses", NullValueHandling = NullValueHandling.Ignore)] 31 | public bool? StoreGenericResponses { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v1/Test/Unit/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyConfiguration("")] 9 | [assembly: AssemblyCompany("")] 10 | [assembly: AssemblyProduct("IBM.Watson.Assistant.v1.UnitTests")] 11 | [assembly: AssemblyTrademark("")] 12 | 13 | // Setting ComVisible to false makes the types in this assembly not visible 14 | // to COM components. If you need to access a type in this assembly from 15 | // COM, set the ComVisible attribute to true on that type. 16 | [assembly: ComVisible(false)] 17 | 18 | // The following GUID is for the ID of the typelib if this project is exposed to COM 19 | [assembly: Guid("7da05e71-3503-4982-aab6-26c9b76bdd5f")] 20 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v2/Examples/IBM.Watson.Assistant.v2.Examples.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | netstandard2.0 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v2/Model/AgentAvailabilityMessage.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2020. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v2.Model 21 | { 22 | /// 23 | /// AgentAvailabilityMessage. 24 | /// 25 | public class AgentAvailabilityMessage 26 | { 27 | /// 28 | /// The text of the message. 29 | /// 30 | [JsonProperty("message", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Message { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v2/Model/BaseEnvironmentOrchestration.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2023. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v2.Model 21 | { 22 | /// 23 | /// The search skill orchestration settings for the environment. 24 | /// 25 | public class BaseEnvironmentOrchestration 26 | { 27 | /// 28 | /// Whether assistants deployed to the environment fall back to a search skill when responding to messages that 29 | /// do not match any intent. If no search skill is configured for the assistant, this property is ignored. 30 | /// 31 | [JsonProperty("search_skill_fallback", NullValueHandling = NullValueHandling.Ignore)] 32 | public bool? SearchSkillFallback { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v2/Model/BaseEnvironmentReleaseReference.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2023. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v2.Model 21 | { 22 | /// 23 | /// An object describing the release that is currently deployed in the environment. 24 | /// 25 | public class BaseEnvironmentReleaseReference 26 | { 27 | /// 28 | /// The name of the deployed release. 29 | /// 30 | [JsonProperty("release", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Release { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v2/Model/BulkClassifyResponse.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2020. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Assistant.v2.Model 22 | { 23 | /// 24 | /// BulkClassifyResponse. 25 | /// 26 | public class BulkClassifyResponse 27 | { 28 | /// 29 | /// An array of objects that contain classification information for the submitted input utterances. 30 | /// 31 | [JsonProperty("output", NullValueHandling = NullValueHandling.Ignore)] 32 | public List Output { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v2/Model/BulkClassifyUtterance.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2020. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v2.Model 21 | { 22 | /// 23 | /// The user input utterance to classify. 24 | /// 25 | public class BulkClassifyUtterance 26 | { 27 | /// 28 | /// The text of the input utterance. 29 | /// 30 | [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Text { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v2/Model/CaptureGroup.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Assistant.v2.Model 22 | { 23 | /// 24 | /// CaptureGroup. 25 | /// 26 | public class CaptureGroup 27 | { 28 | /// 29 | /// A recognized capture group for the entity. 30 | /// 31 | [JsonProperty("group", NullValueHandling = NullValueHandling.Ignore)] 32 | public string Group { get; set; } 33 | /// 34 | /// Zero-based character offsets that indicate where the entity value begins and ends in the input text. 35 | /// 36 | [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)] 37 | public List Location { get; set; } 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v2/Model/ChannelTransferInfo.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2021. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v2.Model 21 | { 22 | /// 23 | /// Information used by an integration to transfer the conversation to a different channel. 24 | /// 25 | public class ChannelTransferInfo 26 | { 27 | /// 28 | /// An object specifying target channels available for the transfer. Each property of this object represents an 29 | /// available transfer target. Currently, the only supported property is **chat**, representing the web chat 30 | /// integration. 31 | /// 32 | [JsonProperty("target", NullValueHandling = NullValueHandling.Ignore)] 33 | public ChannelTransferTarget Target { get; set; } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v2/Model/ChannelTransferTarget.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2021. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v2.Model 21 | { 22 | /// 23 | /// An object specifying target channels available for the transfer. Each property of this object represents an 24 | /// available transfer target. Currently, the only supported property is **chat**, representing the web chat 25 | /// integration. 26 | /// 27 | public class ChannelTransferTarget 28 | { 29 | /// 30 | /// Information for transferring to the web chat integration. 31 | /// 32 | [JsonProperty("chat", NullValueHandling = NullValueHandling.Ignore)] 33 | public ChannelTransferTargetChat Chat { get; set; } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v2/Model/ChannelTransferTargetChat.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2021. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v2.Model 21 | { 22 | /// 23 | /// Information for transferring to the web chat integration. 24 | /// 25 | public class ChannelTransferTargetChat 26 | { 27 | /// 28 | /// The URL of the target web chat. 29 | /// 30 | [JsonProperty("url", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Url { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v2/Model/DialogNodeOutputConnectToAgentTransferInfo.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2020. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Assistant.v2.Model 22 | { 23 | /// 24 | /// Routing or other contextual information to be used by target service desk systems. 25 | /// 26 | public class DialogNodeOutputConnectToAgentTransferInfo 27 | { 28 | /// 29 | /// Gets or Sets Target 30 | /// 31 | [JsonProperty("target", NullValueHandling = NullValueHandling.Ignore)] 32 | public Dictionary> Target { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v2/Model/DialogNodeOutputOptionsElementValue.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v2.Model 21 | { 22 | /// 23 | /// An object defining the message input to be sent to the assistant if the user selects the corresponding option. 24 | /// 25 | public class DialogNodeOutputOptionsElementValue 26 | { 27 | /// 28 | /// An input object that includes the input text. 29 | /// 30 | [JsonProperty("input", NullValueHandling = NullValueHandling.Ignore)] 31 | public MessageInput Input { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v2/Model/DialogSuggestionValue.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2023. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v2.Model 21 | { 22 | /// 23 | /// An object defining the message input to be sent to the assistant if the user selects the corresponding 24 | /// disambiguation option. 25 | /// 26 | /// **Note:** This entire message input object must be included in the request body of the next message sent to the 27 | /// assistant. Do not modify or remove any of the included properties. 28 | /// 29 | public class DialogSuggestionValue 30 | { 31 | /// 32 | /// An input object that includes the input text. 33 | /// 34 | [JsonProperty("input", NullValueHandling = NullValueHandling.Ignore)] 35 | public MessageInput Input { get; set; } 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v2/Model/IntegrationReference.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2022. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v2.Model 21 | { 22 | /// 23 | /// IntegrationReference. 24 | /// 25 | public class IntegrationReference 26 | { 27 | /// 28 | /// The integration ID of the integration. 29 | /// 30 | [JsonProperty("integration_id", NullValueHandling = NullValueHandling.Ignore)] 31 | public string IntegrationId { get; set; } 32 | /// 33 | /// The type of the integration. 34 | /// 35 | [JsonProperty("type", NullValueHandling = NullValueHandling.Ignore)] 36 | public string Type { get; set; } 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v2/Model/MessageInputAttachment.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2022. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v2.Model 21 | { 22 | /// 23 | /// A reference to a media file to be sent as an attachment with the message. 24 | /// 25 | public class MessageInputAttachment 26 | { 27 | /// 28 | /// The URL of the media file. 29 | /// 30 | [JsonProperty("url", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Url { get; set; } 32 | /// 33 | /// The media content type (such as a MIME type) of the attachment. 34 | /// 35 | [JsonProperty("media_type", NullValueHandling = NullValueHandling.Ignore)] 36 | public string MediaType { get; set; } 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v2/Model/ReleaseContent.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2022, 2023. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Assistant.v2.Model 22 | { 23 | /// 24 | /// An object identifying the versionable content objects (such as skill snapshots) that are included in the 25 | /// release. 26 | /// 27 | public class ReleaseContent 28 | { 29 | /// 30 | /// The skill snapshots that are included in the release. 31 | /// 32 | [JsonProperty("skills", NullValueHandling = NullValueHandling.Ignore)] 33 | public virtual List Skills { get; private set; } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v2/Model/ResponseGenericChannel.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2021. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v2.Model 21 | { 22 | /// 23 | /// ResponseGenericChannel. 24 | /// 25 | public class ResponseGenericChannel 26 | { 27 | /// 28 | /// A channel for which the response is intended. 29 | /// 30 | [JsonProperty("channel", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Channel { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v2/Model/RuntimeEntityAlternative.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2020. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v2.Model 21 | { 22 | /// 23 | /// An alternative value for the recognized entity. 24 | /// 25 | public class RuntimeEntityAlternative 26 | { 27 | /// 28 | /// The entity value that was recognized in the user input. 29 | /// 30 | [JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Value { get; set; } 32 | /// 33 | /// A decimal percentage that represents Watson's confidence in the recognized entity. 34 | /// 35 | [JsonProperty("confidence", NullValueHandling = NullValueHandling.Ignore)] 36 | public float? Confidence { get; set; } 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v2/Model/RuntimeResponseGenericRuntimeResponseTypeDate.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2022. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v2.Model 21 | { 22 | /// 23 | /// RuntimeResponseGenericRuntimeResponseTypeDate. 24 | /// 25 | public class RuntimeResponseGenericRuntimeResponseTypeDate : RuntimeResponseGeneric 26 | { 27 | /// 28 | /// The type of response returned by the dialog node. The specified response type must be supported by the 29 | /// client application or channel. 30 | /// 31 | [JsonProperty("response_type", NullValueHandling = NullValueHandling.Ignore)] 32 | public new string ResponseType 33 | { 34 | get { return base.ResponseType; } 35 | set { base.ResponseType = value; } 36 | } 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v2/Model/SearchResultAnswer.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2021. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v2.Model 21 | { 22 | /// 23 | /// An object specifing a segment of text that was identified as a direct answer to the search query. 24 | /// 25 | public class SearchResultAnswer 26 | { 27 | /// 28 | /// The text of the answer. 29 | /// 30 | [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Text { get; set; } 32 | /// 33 | /// The confidence score for the answer, as returned by the Discovery service. 34 | /// 35 | [JsonProperty("confidence", NullValueHandling = NullValueHandling.Ignore)] 36 | public double? Confidence { get; set; } 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v2/Model/SessionResponse.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v2.Model 21 | { 22 | /// 23 | /// SessionResponse. 24 | /// 25 | public class SessionResponse 26 | { 27 | /// 28 | /// The session ID. 29 | /// 30 | [JsonProperty("session_id", NullValueHandling = NullValueHandling.Ignore)] 31 | public string SessionId { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v2/Model/StatusError.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2023. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v2.Model 21 | { 22 | /// 23 | /// An object describing an error that occurred during processing of an asynchronous operation. 24 | /// 25 | public class StatusError 26 | { 27 | /// 28 | /// The text of the error message. 29 | /// 30 | [JsonProperty("message", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Message { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v2/Model/TurnEventCalloutError.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2022. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v2.Model 21 | { 22 | /// 23 | /// TurnEventCalloutError. 24 | /// 25 | public class TurnEventCalloutError 26 | { 27 | /// 28 | /// Any error message returned by a failed call to an external service. 29 | /// 30 | [JsonProperty("message", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Message { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.Assistant.v2/Model/TurnEventSearchError.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2022. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Assistant.v2.Model 21 | { 22 | /// 23 | /// TurnEventSearchError. 24 | /// 25 | public class TurnEventSearchError 26 | { 27 | /// 28 | /// Any error message returned by a failed call to a search skill. 29 | /// 30 | [JsonProperty("message", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Message { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v1/Examples/DiscoveryTestData/stopwords.txt: -------------------------------------------------------------------------------- 1 | | US English default stopword list 2 | 3 | a 4 | an 5 | and 6 | are 7 | as 8 | at 9 | be 10 | but 11 | by 12 | for 13 | if 14 | in 15 | into 16 | is 17 | it 18 | no 19 | not 20 | of 21 | on 22 | or 23 | such 24 | that 25 | the 26 | their 27 | then 28 | there 29 | these 30 | they 31 | this 32 | to 33 | was 34 | will 35 | with 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v1/Examples/DiscoveryTestData/watson_beats_jeopardy.txt: -------------------------------------------------------------------------------- 1 | Watson is a question answering computer system capable of answering questions posed in natural language, developed in IBM's DeepQA project by a research team led by principal investigator David Ferrucci. Watson was named after IBM's first CEO, industrialist Thomas J. Watson. The computer system was specifically developed to answer questions on the quiz show Jeopardy! In 2011, Watson competed on Jeopardy! against former winners Brad Rutter and Ken Jennings. Watson received the first place prize of $1 million. Watson had access to 200 million pages of structured and unstructured content consuming four terabytes of disk storage including the full text of Wikipedia,but was not connected to the Internet during the game. 2 | 3 | For each clue, Watson's three most probable responses were displayed on 4 | the television screen. Watson consistently outperformed its human opponents on the game's signaling device, but had trouble in a few categories, notably those having short clues containing only a few words. In February 2013, IBM announced that Watson software system's first commercial application would be for utilization management decisions in lung cancer treatment at Memorial Sloan Kettering Cancer Center, New York City, in conjunction with health insurance company WellPoint. IBM Watson's former business chief, Manoj Saxena, says that 90% of nurses in the field who use Watson now follow its guidance. -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v1/Examples/IBM.Watson.Discovery.v1.Examples.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | netstandard2.0 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | PreserveNewest 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v1/Model/CollectionCrawlStatus.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Discovery.v1.Model 21 | { 22 | /// 23 | /// Object containing information about the crawl status of this collection. 24 | /// 25 | public class CollectionCrawlStatus 26 | { 27 | /// 28 | /// Object containing source crawl status information. 29 | /// 30 | [JsonProperty("source_crawl", NullValueHandling = NullValueHandling.Ignore)] 31 | public SourceStatus SourceCrawl { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v1/Model/CollectionDiskUsage.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2017, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Discovery.v1.Model 21 | { 22 | /// 23 | /// Summary of the disk usage statistics for this collection. 24 | /// 25 | public class CollectionDiskUsage 26 | { 27 | /// 28 | /// Number of bytes used by the collection. 29 | /// 30 | [JsonProperty("used_bytes", NullValueHandling = NullValueHandling.Ignore)] 31 | public virtual long? UsedBytes { get; private set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v1/Model/CollectionUsage.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Discovery.v1.Model 21 | { 22 | /// 23 | /// Summary of the collection usage in the environment. 24 | /// 25 | public class CollectionUsage 26 | { 27 | /// 28 | /// Number of active collections in the environment. 29 | /// 30 | [JsonProperty("available", NullValueHandling = NullValueHandling.Ignore)] 31 | public virtual long? Available { get; private set; } 32 | /// 33 | /// Total number of collections allowed in the environment. 34 | /// 35 | [JsonProperty("maximum_allowed", NullValueHandling = NullValueHandling.Ignore)] 36 | public virtual long? MaximumAllowed { get; private set; } 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v1/Model/Completions.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Discovery.v1.Model 22 | { 23 | /// 24 | /// An object containing an array of autocompletion suggestions. 25 | /// 26 | public class Completions 27 | { 28 | /// 29 | /// Array of autcomplete suggestion based on the provided prefix. 30 | /// 31 | [JsonProperty("completions", NullValueHandling = NullValueHandling.Ignore)] 32 | public List _Completions { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v1/Model/CredentialsList.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Discovery.v1.Model 22 | { 23 | /// 24 | /// Object containing array of credential definitions. 25 | /// 26 | public class CredentialsList 27 | { 28 | /// 29 | /// An array of credential definitions that were created for this instance. 30 | /// 31 | [JsonProperty("credentials", NullValueHandling = NullValueHandling.Ignore)] 32 | public List Credentials { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v1/Model/GatewayDelete.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Discovery.v1.Model 21 | { 22 | /// 23 | /// Gatway deletion confirmation. 24 | /// 25 | public class GatewayDelete 26 | { 27 | /// 28 | /// The gateway ID of the deleted gateway. 29 | /// 30 | [JsonProperty("gateway_id", NullValueHandling = NullValueHandling.Ignore)] 31 | public string GatewayId { get; set; } 32 | /// 33 | /// The status of the request. 34 | /// 35 | [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)] 36 | public string Status { get; set; } 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v1/Model/GatewayList.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Discovery.v1.Model 22 | { 23 | /// 24 | /// Object containing gateways array. 25 | /// 26 | public class GatewayList 27 | { 28 | /// 29 | /// Array of configured gateway connections. 30 | /// 31 | [JsonProperty("gateways", NullValueHandling = NullValueHandling.Ignore)] 32 | public List Gateways { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v1/Model/ListCollectionsResponse.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2017, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Discovery.v1.Model 22 | { 23 | /// 24 | /// Response object containing an array of collection details. 25 | /// 26 | public class ListCollectionsResponse 27 | { 28 | /// 29 | /// An array containing information about each collection in the environment. 30 | /// 31 | [JsonProperty("collections", NullValueHandling = NullValueHandling.Ignore)] 32 | public List Collections { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v1/Model/ListConfigurationsResponse.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2017, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Discovery.v1.Model 22 | { 23 | /// 24 | /// Object containing an array of available configurations. 25 | /// 26 | public class ListConfigurationsResponse 27 | { 28 | /// 29 | /// An array of configurations that are available for the service instance. 30 | /// 31 | [JsonProperty("configurations", NullValueHandling = NullValueHandling.Ignore)] 32 | public List Configurations { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v1/Model/ListEnvironmentsResponse.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2017, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Discovery.v1.Model 22 | { 23 | /// 24 | /// Response object containing an array of configured environments. 25 | /// 26 | public class ListEnvironmentsResponse 27 | { 28 | /// 29 | /// An array of [environments] that are available for the service instance. 30 | /// 31 | [JsonProperty("environments", NullValueHandling = NullValueHandling.Ignore)] 32 | public List Environments { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v1/Model/MetricResponse.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Discovery.v1.Model 22 | { 23 | /// 24 | /// The response generated from a call to a **metrics** method. 25 | /// 26 | public class MetricResponse 27 | { 28 | /// 29 | /// Array of metric aggregations. 30 | /// 31 | [JsonProperty("aggregations", NullValueHandling = NullValueHandling.Ignore)] 32 | public List Aggregations { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v1/Model/MetricTokenResponse.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Discovery.v1.Model 22 | { 23 | /// 24 | /// The response generated from a call to a **metrics** method that evaluates tokens. 25 | /// 26 | public class MetricTokenResponse 27 | { 28 | /// 29 | /// Array of metric token aggregations. 30 | /// 31 | [JsonProperty("aggregations", NullValueHandling = NullValueHandling.Ignore)] 32 | public List Aggregations { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v1/Model/NluEnrichmentConcepts.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Discovery.v1.Model 21 | { 22 | /// 23 | /// An object specifiying the concepts enrichment and related parameters. 24 | /// 25 | public class NluEnrichmentConcepts 26 | { 27 | /// 28 | /// The maximum number of concepts enrichments to extact from each instance of the specified field. 29 | /// 30 | [JsonProperty("limit", NullValueHandling = NullValueHandling.Ignore)] 31 | public long? Limit { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v1/Model/NluEnrichmentRelations.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Discovery.v1.Model 21 | { 22 | /// 23 | /// An object specifying the relations enrichment and related parameters. 24 | /// 25 | public class NluEnrichmentRelations 26 | { 27 | /// 28 | /// *For use with `natural_language_understanding` enrichments only.* The enrichement model to use with 29 | /// relationship extraction. May be a custom model provided by Watson Knowledge Studio, the default public model 30 | /// is`en-news`. 31 | /// 32 | [JsonProperty("model", NullValueHandling = NullValueHandling.Ignore)] 33 | public string Model { get; set; } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v1/Model/PdfHeadingDetection.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Discovery.v1.Model 22 | { 23 | /// 24 | /// Object containing heading detection conversion settings for PDF documents. 25 | /// 26 | public class PdfHeadingDetection 27 | { 28 | /// 29 | /// Array of font matching configurations. 30 | /// 31 | [JsonProperty("fonts", NullValueHandling = NullValueHandling.Ignore)] 32 | public List Fonts { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v1/Model/PdfSettings.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Discovery.v1.Model 21 | { 22 | /// 23 | /// A list of PDF conversion settings. 24 | /// 25 | public class PdfSettings 26 | { 27 | /// 28 | /// Object containing heading detection conversion settings for PDF documents. 29 | /// 30 | [JsonProperty("heading", NullValueHandling = NullValueHandling.Ignore)] 31 | public PdfHeadingDetection Heading { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v1/Model/TopHitsResults.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Discovery.v1.Model 22 | { 23 | /// 24 | /// Top hit information for this query. 25 | /// 26 | public class TopHitsResults 27 | { 28 | /// 29 | /// Number of matching results. 30 | /// 31 | [JsonProperty("matching_results", NullValueHandling = NullValueHandling.Ignore)] 32 | public long? MatchingResults { get; set; } 33 | /// 34 | /// Top results returned by the aggregation. 35 | /// 36 | [JsonProperty("hits", NullValueHandling = NullValueHandling.Ignore)] 37 | public List Hits { get; set; } 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v1/Model/TrainingExampleList.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Discovery.v1.Model 22 | { 23 | /// 24 | /// Object containing an array of training examples. 25 | /// 26 | public class TrainingExampleList 27 | { 28 | /// 29 | /// Array of training examples. 30 | /// 31 | [JsonProperty("examples", NullValueHandling = NullValueHandling.Ignore)] 32 | public List Examples { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v1/Model/WordSettings.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Discovery.v1.Model 21 | { 22 | /// 23 | /// A list of Word conversion settings. 24 | /// 25 | public class WordSettings 26 | { 27 | /// 28 | /// Object containing heading detection conversion settings for Microsoft Word documents. 29 | /// 30 | [JsonProperty("heading", NullValueHandling = NullValueHandling.Ignore)] 31 | public WordHeadingDetection Heading { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v1/Model/WordStyle.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2017, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Discovery.v1.Model 22 | { 23 | /// 24 | /// Microsoft Word styles to convert into a specified HTML head level. 25 | /// 26 | public class WordStyle 27 | { 28 | /// 29 | /// HTML head level that content matching this style is tagged with. 30 | /// 31 | [JsonProperty("level", NullValueHandling = NullValueHandling.Ignore)] 32 | public long? Level { get; set; } 33 | /// 34 | /// Array of word style names to convert. 35 | /// 36 | [JsonProperty("names", NullValueHandling = NullValueHandling.Ignore)] 37 | public List Names { get; set; } 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v1/Model/XPathPatterns.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Discovery.v1.Model 22 | { 23 | /// 24 | /// Object containing an array of XPaths. 25 | /// 26 | public class XPathPatterns 27 | { 28 | /// 29 | /// An array to XPaths. 30 | /// 31 | [JsonProperty("xpaths", NullValueHandling = NullValueHandling.Ignore)] 32 | public List Xpaths { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v1/Test/Integration/DiscoveryTestData/stopwords.txt: -------------------------------------------------------------------------------- 1 | | US English default stopword list 2 | 3 | a 4 | an 5 | and 6 | are 7 | as 8 | at 9 | be 10 | but 11 | by 12 | for 13 | if 14 | in 15 | into 16 | is 17 | it 18 | no 19 | not 20 | of 21 | on 22 | or 23 | such 24 | that 25 | the 26 | their 27 | then 28 | there 29 | these 30 | they 31 | this 32 | to 33 | was 34 | will 35 | with 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v1/Test/Integration/DiscoveryTestData/watson_beats_jeopardy.txt: -------------------------------------------------------------------------------- 1 | Watson is a question answering computer system capable of answering questions posed in natural language, developed in IBM's DeepQA project by a research team led by principal investigator David Ferrucci. Watson was named after IBM's first CEO, industrialist Thomas J. Watson. The computer system was specifically developed to answer questions on the quiz show Jeopardy! In 2011, Watson competed on Jeopardy! against former winners Brad Rutter and Ken Jennings. Watson received the first place prize of $1 million. Watson had access to 200 million pages of structured and unstructured content consuming four terabytes of disk storage including the full text of Wikipedia,but was not connected to the Internet during the game. 2 | 3 | For each clue, Watson's three most probable responses were displayed on 4 | the television screen. Watson consistently outperformed its human opponents on the game's signaling device, but had trouble in a few categories, notably those having short clues containing only a few words. In February 2013, IBM announced that Watson software system's first commercial application would be for utilization management decisions in lung cancer treatment at Memorial Sloan Kettering Cancer Center, New York City, in conjunction with health insurance company WellPoint. IBM Watson's former business chief, Manoj Saxena, says that 90% of nurses in the field who use Watson now follow its guidance. -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v1/Test/Integration/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyConfiguration("")] 9 | [assembly: AssemblyCompany("")] 10 | [assembly: AssemblyProduct("IBM.Watson.Discovery.v1.IntegrationTests")] 11 | [assembly: AssemblyTrademark("")] 12 | 13 | // Setting ComVisible to false makes the types in this assembly not visible 14 | // to COM components. If you need to access a type in this assembly from 15 | // COM, set the ComVisible attribute to true on that type. 16 | [assembly: ComVisible(false)] 17 | 18 | // The following GUID is for the ID of the typelib if this project is exposed to COM 19 | [assembly: Guid("0248ba8f-0351-4f9c-acb3-7d9fe42a4cb1")] 20 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v1/Test/Unit/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyConfiguration("")] 9 | [assembly: AssemblyCompany("")] 10 | [assembly: AssemblyProduct("IBM.Watson.Discovery.v1.UnitTests")] 11 | [assembly: AssemblyTrademark("")] 12 | 13 | // Setting ComVisible to false makes the types in this assembly not visible 14 | // to COM components. If you need to access a type in this assembly from 15 | // COM, set the ComVisible attribute to true on that type. 16 | [assembly: ComVisible(false)] 17 | 18 | // The following GUID is for the ID of the typelib if this project is exposed to COM 19 | [assembly: Guid("4302b718-98da-4922-84d6-6839495f4b71")] 20 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Examples/IBM.Watson.Discovery.v2.Examples.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | net7.0 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Model/AnalyzedResult.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2020, 2022. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using IBM.Cloud.SDK.Core.Model; 20 | using Newtonsoft.Json; 21 | 22 | namespace IBM.Watson.Discovery.v2.Model 23 | { 24 | /// 25 | /// Result of the document analysis. 26 | /// 27 | public class AnalyzedResult : DynamicModel 28 | { 29 | /// 30 | /// Metadata that was specified with the request. 31 | /// 32 | [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] 33 | public Dictionary Metadata { get; set; } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Model/ClassifierFederatedModel.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2022. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Discovery.v2.Model 21 | { 22 | /// 23 | /// An object with details for creating federated document classifier models. 24 | /// 25 | public class ClassifierFederatedModel 26 | { 27 | /// 28 | /// Name of the field that contains the values from which multiple classifier models are defined. For example, 29 | /// you can specify a field that lists product lines to create a separate model per product line. 30 | /// 31 | [JsonProperty("field", NullValueHandling = NullValueHandling.Ignore)] 32 | public string Field { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Model/Collection.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Discovery.v2.Model 21 | { 22 | /// 23 | /// A collection for storing documents. 24 | /// 25 | public class Collection 26 | { 27 | /// 28 | /// The unique identifier of the collection. 29 | /// 30 | [JsonProperty("collection_id", NullValueHandling = NullValueHandling.Ignore)] 31 | public virtual string CollectionId { get; private set; } 32 | /// 33 | /// The name of the collection. 34 | /// 35 | [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] 36 | public string Name { get; set; } 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Model/Completions.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2019, 2021. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Discovery.v2.Model 22 | { 23 | /// 24 | /// An object that contains an array of autocompletion suggestions. 25 | /// 26 | public class Completions 27 | { 28 | /// 29 | /// Array of autocomplete suggestion based on the provided prefix. 30 | /// 31 | [JsonProperty("completions", NullValueHandling = NullValueHandling.Ignore)] 32 | public List _Completions { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Model/ComponentSettingsFieldsShown.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Discovery.v2.Model 21 | { 22 | /// 23 | /// Fields shown in the results section of the UI. 24 | /// 25 | public class ComponentSettingsFieldsShown 26 | { 27 | /// 28 | /// Body label. 29 | /// 30 | [JsonProperty("body", NullValueHandling = NullValueHandling.Ignore)] 31 | public ComponentSettingsFieldsShownBody Body { get; set; } 32 | /// 33 | /// Title label. 34 | /// 35 | [JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)] 36 | public ComponentSettingsFieldsShownTitle Title { get; set; } 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Model/ComponentSettingsFieldsShownBody.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Discovery.v2.Model 21 | { 22 | /// 23 | /// Body label. 24 | /// 25 | public class ComponentSettingsFieldsShownBody 26 | { 27 | /// 28 | /// Use the whole passage as the body. 29 | /// 30 | [JsonProperty("use_passage", NullValueHandling = NullValueHandling.Ignore)] 31 | public bool? UsePassage { get; set; } 32 | /// 33 | /// Use a specific field as the title. 34 | /// 35 | [JsonProperty("field", NullValueHandling = NullValueHandling.Ignore)] 36 | public string Field { get; set; } 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Model/ComponentSettingsFieldsShownTitle.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Discovery.v2.Model 21 | { 22 | /// 23 | /// Title label. 24 | /// 25 | public class ComponentSettingsFieldsShownTitle 26 | { 27 | /// 28 | /// Use a specific field as the title. 29 | /// 30 | [JsonProperty("field", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Field { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Model/DocumentClassifierModels.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2022. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Discovery.v2.Model 22 | { 23 | /// 24 | /// An object that contains a list of document classifier model definitions. 25 | /// 26 | public class DocumentClassifierModels 27 | { 28 | /// 29 | /// An array of document classifier model definitions. 30 | /// 31 | [JsonProperty("models", NullValueHandling = NullValueHandling.Ignore)] 32 | public List Models { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Model/DocumentClassifiers.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2022. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Discovery.v2.Model 22 | { 23 | /// 24 | /// An object that contains a list of document classifier definitions. 25 | /// 26 | public class DocumentClassifiers 27 | { 28 | /// 29 | /// An array of document classifier definitions. 30 | /// 31 | [JsonProperty("classifiers", NullValueHandling = NullValueHandling.Ignore)] 32 | public List Classifiers { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Model/Enrichments.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2020, 2021. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Discovery.v2.Model 22 | { 23 | /// 24 | /// An object that contains an array of enrichment definitions. 25 | /// 26 | public class Enrichments 27 | { 28 | /// 29 | /// An array of enrichment definitions. 30 | /// 31 | [JsonProperty("enrichments", NullValueHandling = NullValueHandling.Ignore)] 32 | public List _Enrichments { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Model/ListCollectionsResponse.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2019, 2021. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Discovery.v2.Model 22 | { 23 | /// 24 | /// Response object that contains an array of collection details. 25 | /// 26 | public class ListCollectionsResponse 27 | { 28 | /// 29 | /// An array that contains information about each collection in the project. 30 | /// 31 | [JsonProperty("collections", NullValueHandling = NullValueHandling.Ignore)] 32 | public List Collections { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Model/ListProjectsResponse.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2020. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Discovery.v2.Model 22 | { 23 | /// 24 | /// A list of projects in this instance. 25 | /// 26 | public class ListProjectsResponse 27 | { 28 | /// 29 | /// An array of project details. 30 | /// 31 | [JsonProperty("projects", NullValueHandling = NullValueHandling.Ignore)] 32 | public List Projects { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Model/QueryLargeTableResults.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Discovery.v2.Model 21 | { 22 | /// 23 | /// Configuration for table retrieval. 24 | /// 25 | public class QueryLargeTableResults 26 | { 27 | /// 28 | /// Whether to enable table retrieval. 29 | /// 30 | [JsonProperty("enabled", NullValueHandling = NullValueHandling.Ignore)] 31 | public bool? Enabled { get; set; } 32 | /// 33 | /// Maximum number of tables to return. 34 | /// 35 | [JsonProperty("count", NullValueHandling = NullValueHandling.Ignore)] 36 | public long? Count { get; set; } 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Model/QueryNoticesResponse.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2019, 2021. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Discovery.v2.Model 22 | { 23 | /// 24 | /// Object that contains notice query results. 25 | /// 26 | public class QueryNoticesResponse 27 | { 28 | /// 29 | /// The number of matching results. 30 | /// 31 | [JsonProperty("matching_results", NullValueHandling = NullValueHandling.Ignore)] 32 | public long? MatchingResults { get; set; } 33 | /// 34 | /// Array of document results that match the query. 35 | /// 36 | [JsonProperty("notices", NullValueHandling = NullValueHandling.Ignore)] 37 | public List Notices { get; set; } 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Model/QueryPairAggregationResult.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2023. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Discovery.v2.Model 22 | { 23 | /// 24 | /// Result for the `pair` aggregation. 25 | /// 26 | public class QueryPairAggregationResult 27 | { 28 | /// 29 | /// Array of subaggregations of type `term`, `group_by`, `histogram`, or `timeslice`. Each element of the matrix 30 | /// that is returned contains a **relevancy** value that is calculated from the combination of each value from 31 | /// the first and second aggregations. 32 | /// 33 | [JsonProperty("aggregations", NullValueHandling = NullValueHandling.Ignore)] 34 | public List> Aggregations { get; set; } 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Model/QuerySuggestedRefinement.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2019, 2022. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Discovery.v2.Model 21 | { 22 | /// 23 | /// A suggested additional query term or terms user to filter results. **Note**: The `suggested_refinements` 24 | /// parameter is deprecated. 25 | /// 26 | public class QuerySuggestedRefinement 27 | { 28 | /// 29 | /// The text used to filter. 30 | /// 31 | [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)] 32 | public string Text { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Model/QueryTopicAggregationResult.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2023. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Discovery.v2.Model 22 | { 23 | /// 24 | /// Result for the `topic` aggregation. 25 | /// 26 | public class QueryTopicAggregationResult 27 | { 28 | /// 29 | /// Array of subaggregations of type `term` or `group_by` and `timeslice`. Each element of the matrix that is 30 | /// returned contains a **topic_indicator** that is calculated from the combination of each aggregation value 31 | /// and segment of time. 32 | /// 33 | [JsonProperty("aggregations", NullValueHandling = NullValueHandling.Ignore)] 34 | public List> Aggregations { get; set; } 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Model/QueryTrendAggregationResult.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2023. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Discovery.v2.Model 22 | { 23 | /// 24 | /// Result for the `trend` aggregation. 25 | /// 26 | public class QueryTrendAggregationResult 27 | { 28 | /// 29 | /// Array of subaggregations of type `term` or `group_by` and `timeslice`. Each element of the matrix that is 30 | /// returned contains a **trend_indicator** that is calculated from the combination of each aggregation value 31 | /// and segment of time. 32 | /// 33 | [JsonProperty("aggregations", NullValueHandling = NullValueHandling.Ignore)] 34 | public List> Aggregations { get; set; } 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Model/StopWordList.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2022. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Discovery.v2.Model 22 | { 23 | /// 24 | /// List of words to filter out of text that is submitted in queries. 25 | /// 26 | public class StopWordList 27 | { 28 | /// 29 | /// List of stop words. 30 | /// 31 | [JsonProperty("stopwords", NullValueHandling = NullValueHandling.Ignore)] 32 | public List Stopwords { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Model/TableColumnHeaderIds.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Discovery.v2.Model 21 | { 22 | /// 23 | /// An array of values, each being the `id` value of a column header that is applicable to the current cell. 24 | /// 25 | public class TableColumnHeaderIds 26 | { 27 | /// 28 | /// The `id` value of a column header. 29 | /// 30 | [JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Id { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Model/TableColumnHeaderTexts.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Discovery.v2.Model 21 | { 22 | /// 23 | /// An array of values, each being the `text` value of a column header that is applicable to the current cell. 24 | /// 25 | public class TableColumnHeaderTexts 26 | { 27 | /// 28 | /// The `text` value of a column header. 29 | /// 30 | [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Text { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Model/TableColumnHeaderTextsNormalized.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Discovery.v2.Model 21 | { 22 | /// 23 | /// If you provide customization input, the normalized version of the column header texts according to the 24 | /// customization; otherwise, the same value as `column_header_texts`. 25 | /// 26 | public class TableColumnHeaderTextsNormalized 27 | { 28 | /// 29 | /// The normalized version of a column header text. 30 | /// 31 | [JsonProperty("text_normalized", NullValueHandling = NullValueHandling.Ignore)] 32 | public string TextNormalized { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Model/TableElementLocation.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Discovery.v2.Model 21 | { 22 | /// 23 | /// The numeric location of the identified element in the document, represented with two integers labeled `begin` 24 | /// and `end`. 25 | /// 26 | public class TableElementLocation 27 | { 28 | /// 29 | /// The element's `begin` index. 30 | /// 31 | [JsonProperty("begin", NullValueHandling = NullValueHandling.Ignore)] 32 | public long? Begin { get; set; } 33 | /// 34 | /// The element's `end` index. 35 | /// 36 | [JsonProperty("end", NullValueHandling = NullValueHandling.Ignore)] 37 | public long? End { get; set; } 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Model/TableKeyValuePairs.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Discovery.v2.Model 22 | { 23 | /// 24 | /// Key-value pairs detected across cell boundaries. 25 | /// 26 | public class TableKeyValuePairs 27 | { 28 | /// 29 | /// A key in a key-value pair. 30 | /// 31 | [JsonProperty("key", NullValueHandling = NullValueHandling.Ignore)] 32 | public TableCellKey Key { get; set; } 33 | /// 34 | /// A list of values in a key-value pair. 35 | /// 36 | [JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)] 37 | public List Value { get; set; } 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Model/TableRowHeaderIds.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Discovery.v2.Model 21 | { 22 | /// 23 | /// An array of values, each being the `id` value of a row header that is applicable to this body cell. 24 | /// 25 | public class TableRowHeaderIds 26 | { 27 | /// 28 | /// The `id` values of a row header. 29 | /// 30 | [JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Id { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Model/TableRowHeaderTexts.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Discovery.v2.Model 21 | { 22 | /// 23 | /// An array of values, each being the `text` value of a row header that is applicable to this body cell. 24 | /// 25 | public class TableRowHeaderTexts 26 | { 27 | /// 28 | /// The `text` value of a row header. 29 | /// 30 | [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Text { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Model/TableRowHeaderTextsNormalized.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.Discovery.v2.Model 21 | { 22 | /// 23 | /// If you provide customization input, the normalized version of the row header texts according to the 24 | /// customization; otherwise, the same value as `row_header_texts`. 25 | /// 26 | public class TableRowHeaderTextsNormalized 27 | { 28 | /// 29 | /// The normalized version of a row header text. 30 | /// 31 | [JsonProperty("text_normalized", NullValueHandling = NullValueHandling.Ignore)] 32 | public string TextNormalized { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Model/TrainingQuerySet.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2019, 2022. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.Discovery.v2.Model 22 | { 23 | /// 24 | /// Object specifying the training queries contained in the identified training set. 25 | /// 26 | public class TrainingQuerySet 27 | { 28 | /// 29 | /// Array of training queries. At least 50 queries are required for training to begin. A maximum of 10,000 30 | /// queries are returned. 31 | /// 32 | [JsonProperty("queries", NullValueHandling = NullValueHandling.Ignore)] 33 | public List Queries { get; set; } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Test/Integration/DiscoveryTestData/classification_training.csv: -------------------------------------------------------------------------------- 1 | The rooms were too cold., facility_temperature 2 | Breakfast did not include gluten-free options., catering 3 | The rooms were too warm., facility_temperature 4 | I was very comfortable in the session rooms., facility_temperature 5 | The awards dinner was delicious., catering 6 | Coffee ran out during one of the breaks., catering 7 | The temperature was not comfortable., facility_temperature 8 | I was very happy with the selection at lunch., catering 9 | It was nice that you provided tea and coffee. Tea drinkers are often ignored., catering 10 | Can you turn up the air conditioning? I was very warm., facility_temperature 11 | My teeth were chattering because I was so cold., facility_temperature 12 | The speaker left the room to find someone to adjust the temperature., facility_temperature 13 | Would you consider an all-vegan menu next year?, catering 14 | I would like lemonade and iced tea to be served during the breaks., catering 15 | The lunch staff was excellent., catering 16 | Appreciated the fresh blueberry muffins at breakfast., catering 17 | The hotel staff adjusted the temperature in my session room as soon as I asked. Excellent service!, facility_temperature 18 | Every meal was delicious and there was something for everyone., catering 19 | The seats under the skylights were not comfortable. Too hot., facility_temperature 20 | I was comfortable everywhere in the conference center. I never needed my emergency sweater., facility_temperature -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Test/Integration/DiscoveryTestData/test-pdf.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/watson-developer-cloud/dotnet-standard-sdk/6a187d82a37dc6bf97a488816ae0a5bf8ce31710/src/IBM.Watson.Discovery.v2/Test/Integration/DiscoveryTestData/test-pdf.pdf -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Test/Integration/DiscoveryTestData/test.csv: -------------------------------------------------------------------------------- 1 | engine,gasket,carburetor,piston,valves 2 | racing,stock,open,indy,drag 3 | flag,checkered,green,caution,yellow,red -------------------------------------------------------------------------------- /src/IBM.Watson.Discovery.v2/Test/Integration/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyConfiguration("")] 9 | [assembly: AssemblyCompany("")] 10 | [assembly: AssemblyProduct("IBM.Watson.Discovery.v1.IntegrationTests")] 11 | [assembly: AssemblyTrademark("")] 12 | 13 | // Setting ComVisible to false makes the types in this assembly not visible 14 | // to COM components. If you need to access a type in this assembly from 15 | // COM, set the ComVisible attribute to true on that type. 16 | [assembly: ComVisible(false)] 17 | 18 | // The following GUID is for the ID of the typelib if this project is exposed to COM 19 | [assembly: Guid("0248ba8f-0351-4f9c-acb3-7d9fe42a4cb1")] 20 | -------------------------------------------------------------------------------- /src/IBM.Watson.LanguageTranslator.v3/Examples/IBM.Watson.LanguageTranslator.v3.Examples.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | net7.0 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | PreserveNewest 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /src/IBM.Watson.LanguageTranslator.v3/Examples/LanguageTranslatorTestData/document-to-translate.txt: -------------------------------------------------------------------------------- 1 | Where is the library? 2 | How are you? -------------------------------------------------------------------------------- /src/IBM.Watson.LanguageTranslator.v3/Examples/LanguageTranslatorTestData/glossary.tmx: -------------------------------------------------------------------------------- 1 | 2 | 3 |
6 | 7 | 8 | 9 | International Business Machines 10 | 11 | 12 | International Business Machines 13 | 14 | 15 | 16 | 17 | patent 18 | 19 | 20 | brevent 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/IBM.Watson.LanguageTranslator.v3/Model/DeleteModelResult.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.LanguageTranslator.v3.Model 21 | { 22 | /// 23 | /// DeleteModelResult. 24 | /// 25 | public class DeleteModelResult 26 | { 27 | /// 28 | /// "OK" indicates that the model was successfully deleted. 29 | /// 30 | [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Status { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.LanguageTranslator.v3/Model/DocumentList.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.LanguageTranslator.v3.Model 22 | { 23 | /// 24 | /// DocumentList. 25 | /// 26 | public class DocumentList 27 | { 28 | /// 29 | /// An array of all previously submitted documents. 30 | /// 31 | [JsonProperty("documents", NullValueHandling = NullValueHandling.Ignore)] 32 | public List Documents { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.LanguageTranslator.v3/Model/IdentifiableLanguage.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.LanguageTranslator.v3.Model 21 | { 22 | /// 23 | /// IdentifiableLanguage. 24 | /// 25 | public class IdentifiableLanguage 26 | { 27 | /// 28 | /// The language code for an identifiable language. 29 | /// 30 | [JsonProperty("language", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Language { get; set; } 32 | /// 33 | /// The name of the identifiable language. 34 | /// 35 | [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] 36 | public string Name { get; set; } 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/IBM.Watson.LanguageTranslator.v3/Model/IdentifiableLanguages.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.LanguageTranslator.v3.Model 22 | { 23 | /// 24 | /// IdentifiableLanguages. 25 | /// 26 | public class IdentifiableLanguages 27 | { 28 | /// 29 | /// A list of all languages that the service can identify. 30 | /// 31 | [JsonProperty("languages", NullValueHandling = NullValueHandling.Ignore)] 32 | public List Languages { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.LanguageTranslator.v3/Model/IdentifiedLanguage.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.LanguageTranslator.v3.Model 21 | { 22 | /// 23 | /// IdentifiedLanguage. 24 | /// 25 | public class IdentifiedLanguage 26 | { 27 | /// 28 | /// The language code for an identified language. 29 | /// 30 | [JsonProperty("language", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Language { get; set; } 32 | /// 33 | /// The confidence score for the identified language. 34 | /// 35 | [JsonProperty("confidence", NullValueHandling = NullValueHandling.Ignore)] 36 | public double? Confidence { get; set; } 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/IBM.Watson.LanguageTranslator.v3/Model/IdentifiedLanguages.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.LanguageTranslator.v3.Model 22 | { 23 | /// 24 | /// IdentifiedLanguages. 25 | /// 26 | public class IdentifiedLanguages 27 | { 28 | /// 29 | /// A ranking of identified languages with confidence scores. 30 | /// 31 | [JsonProperty("languages", NullValueHandling = NullValueHandling.Ignore)] 32 | public List Languages { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.LanguageTranslator.v3/Model/Languages.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2020. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.LanguageTranslator.v3.Model 22 | { 23 | /// 24 | /// The response type for listing supported languages. 25 | /// 26 | public class Languages 27 | { 28 | /// 29 | /// An array of supported languages with information about each language. 30 | /// 31 | [JsonProperty("languages", NullValueHandling = NullValueHandling.Ignore)] 32 | public List _Languages { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.LanguageTranslator.v3/Model/Translation.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.LanguageTranslator.v3.Model 21 | { 22 | /// 23 | /// Translation. 24 | /// 25 | public class Translation 26 | { 27 | /// 28 | /// Translation output in UTF-8. 29 | /// 30 | [JsonProperty("translation", NullValueHandling = NullValueHandling.Ignore)] 31 | public string _Translation { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.LanguageTranslator.v3/Model/TranslationModels.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.LanguageTranslator.v3.Model 22 | { 23 | /// 24 | /// The response type for listing existing translation models. 25 | /// 26 | public class TranslationModels 27 | { 28 | /// 29 | /// An array of available models. 30 | /// 31 | [JsonProperty("models", NullValueHandling = NullValueHandling.Ignore)] 32 | public List Models { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.LanguageTranslator.v3/Test/Integration/LanguageTranslatorTestData/document-to-translate.txt: -------------------------------------------------------------------------------- 1 | Where is the library? 2 | How are you? -------------------------------------------------------------------------------- /src/IBM.Watson.LanguageTranslator.v3/Test/Integration/LanguageTranslatorTestData/glossary.tmx: -------------------------------------------------------------------------------- 1 | 2 | 3 |
6 | 7 | 8 | 9 | International Business Machines 10 | 11 | 12 | International Business Machines 13 | 14 | 15 | 16 | 17 | patent 18 | 19 | 20 | brevent 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/IBM.Watson.LanguageTranslator.v3/Test/Integration/LanguageTranslatorTestData/language-translation-ppt.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/watson-developer-cloud/dotnet-standard-sdk/6a187d82a37dc6bf97a488816ae0a5bf8ce31710/src/IBM.Watson.LanguageTranslator.v3/Test/Integration/LanguageTranslatorTestData/language-translation-ppt.pptx -------------------------------------------------------------------------------- /src/IBM.Watson.LanguageTranslator.v3/Test/Integration/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyConfiguration("")] 9 | [assembly: AssemblyCompany("IBM")] 10 | [assembly: AssemblyProduct("IBM.Watson.LanguageTranslator.v3.IntegrationTests")] 11 | [assembly: AssemblyTrademark("")] 12 | 13 | // Setting ComVisible to false makes the types in this assembly not visible 14 | // to COM components. If you need to access a type in this assembly from 15 | // COM, set the ComVisible attribute to true on that type. 16 | [assembly: ComVisible(false)] 17 | 18 | // The following GUID is for the ID of the typelib if this project is exposed to COM 19 | [assembly: Guid("3fe948b6-fd0e-4fbf-8310-1f86d46ecabb")] 20 | -------------------------------------------------------------------------------- /src/IBM.Watson.LanguageTranslator.v3/Test/Unit/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyConfiguration("")] 9 | [assembly: AssemblyCompany("IBM")] 10 | [assembly: AssemblyProduct("IBM.Watson.LanguageTranslator.v3.UnitTests")] 11 | [assembly: AssemblyTrademark("")] 12 | 13 | // Setting ComVisible to false makes the types in this assembly not visible 14 | // to COM components. If you need to access a type in this assembly from 15 | // COM, set the ComVisible attribute to true on that type. 16 | [assembly: ComVisible(false)] 17 | 18 | // The following GUID is for the ID of the typelib if this project is exposed to COM 19 | [assembly: Guid("d1d1ab0e-ba2f-448b-9054-76fe18539b55")] 20 | -------------------------------------------------------------------------------- /src/IBM.Watson.NaturalLanguageUnderstanding.v1/Examples/IBM.Watson.NLU.v1.Examples.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | netstandard2.0 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/IBM.Watson.NaturalLanguageUnderstanding.v1/Model/Author.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.NaturalLanguageUnderstanding.v1.Model 21 | { 22 | /// 23 | /// The author of the analyzed content. 24 | /// 25 | public class Author 26 | { 27 | /// 28 | /// Name of the author. 29 | /// 30 | [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Name { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.NaturalLanguageUnderstanding.v1/Model/CategoriesModelList.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2021. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.NaturalLanguageUnderstanding.v1.Model 22 | { 23 | /// 24 | /// List of categories models. 25 | /// 26 | public class CategoriesModelList 27 | { 28 | /// 29 | /// The categories models. 30 | /// 31 | [JsonProperty("models", NullValueHandling = NullValueHandling.Ignore)] 32 | public List Models { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.NaturalLanguageUnderstanding.v1/Model/CategoriesRelevantText.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.NaturalLanguageUnderstanding.v1.Model 21 | { 22 | /// 23 | /// Relevant text that contributed to the categorization. 24 | /// 25 | public class CategoriesRelevantText 26 | { 27 | /// 28 | /// Text from the analyzed source that supports the categorization. 29 | /// 30 | [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Text { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.NaturalLanguageUnderstanding.v1/Model/ClassificationsModelList.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2021. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.NaturalLanguageUnderstanding.v1.Model 22 | { 23 | /// 24 | /// List of classifications models. 25 | /// 26 | public class ClassificationsModelList 27 | { 28 | /// 29 | /// The classifications models. 30 | /// 31 | [JsonProperty("models", NullValueHandling = NullValueHandling.Ignore)] 32 | public List Models { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.NaturalLanguageUnderstanding.v1/Model/ConceptsOptions.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.NaturalLanguageUnderstanding.v1.Model 21 | { 22 | /// 23 | /// Returns high-level concepts in the content. For example, a research paper about deep learning might return the 24 | /// concept, "Artificial Intelligence" although the term is not mentioned. 25 | /// 26 | /// Supported languages: English, French, German, Italian, Japanese, Korean, Portuguese, Spanish. 27 | /// 28 | public class ConceptsOptions 29 | { 30 | /// 31 | /// Maximum number of concepts to return. 32 | /// 33 | [JsonProperty("limit", NullValueHandling = NullValueHandling.Ignore)] 34 | public long? Limit { get; set; } 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/IBM.Watson.NaturalLanguageUnderstanding.v1/Model/DeleteModelResults.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.NaturalLanguageUnderstanding.v1.Model 21 | { 22 | /// 23 | /// Delete model results. 24 | /// 25 | public class DeleteModelResults 26 | { 27 | /// 28 | /// model_id of the deleted model. 29 | /// 30 | [JsonProperty("deleted", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Deleted { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.NaturalLanguageUnderstanding.v1/Model/DocumentEmotionResults.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.NaturalLanguageUnderstanding.v1.Model 21 | { 22 | /// 23 | /// Emotion results for the document as a whole. 24 | /// 25 | public class DocumentEmotionResults 26 | { 27 | /// 28 | /// Emotion results for the document as a whole. 29 | /// 30 | [JsonProperty("emotion", NullValueHandling = NullValueHandling.Ignore)] 31 | public EmotionScores Emotion { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.NaturalLanguageUnderstanding.v1/Model/DocumentSentimentResults.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.NaturalLanguageUnderstanding.v1.Model 21 | { 22 | /// 23 | /// DocumentSentimentResults. 24 | /// 25 | public class DocumentSentimentResults 26 | { 27 | /// 28 | /// Indicates whether the sentiment is positive, neutral, or negative. 29 | /// 30 | [JsonProperty("label", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Label { get; set; } 32 | /// 33 | /// Sentiment score from -1 (negative) to 1 (positive). 34 | /// 35 | [JsonProperty("score", NullValueHandling = NullValueHandling.Ignore)] 36 | public double? Score { get; set; } 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/IBM.Watson.NaturalLanguageUnderstanding.v1/Model/FeatureSentimentResults.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.NaturalLanguageUnderstanding.v1.Model 21 | { 22 | /// 23 | /// FeatureSentimentResults. 24 | /// 25 | public class FeatureSentimentResults 26 | { 27 | /// 28 | /// Sentiment score from -1 (negative) to 1 (positive). 29 | /// 30 | [JsonProperty("score", NullValueHandling = NullValueHandling.Ignore)] 31 | public double? Score { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.NaturalLanguageUnderstanding.v1/Model/Feed.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.NaturalLanguageUnderstanding.v1.Model 21 | { 22 | /// 23 | /// RSS or ATOM feed found on the webpage. 24 | /// 25 | public class Feed 26 | { 27 | /// 28 | /// URL of the RSS or ATOM feed. 29 | /// 30 | [JsonProperty("link", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Link { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.NaturalLanguageUnderstanding.v1/Model/ListClassificationsModelsResponse.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2021. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.NaturalLanguageUnderstanding.v1.Model 22 | { 23 | /// 24 | /// ListClassificationsModelsResponse. 25 | /// 26 | public class ListClassificationsModelsResponse 27 | { 28 | /// 29 | /// Gets or Sets Models 30 | /// 31 | [JsonProperty("models", NullValueHandling = NullValueHandling.Ignore)] 32 | public List Models { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.NaturalLanguageUnderstanding.v1/Model/ListModelsResults.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.NaturalLanguageUnderstanding.v1.Model 22 | { 23 | /// 24 | /// Custom models that are available for entities and relations. 25 | /// 26 | public class ListModelsResults 27 | { 28 | /// 29 | /// An array of available models. 30 | /// 31 | [JsonProperty("models", NullValueHandling = NullValueHandling.Ignore)] 32 | public List Models { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.NaturalLanguageUnderstanding.v1/Model/Notice.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2021. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.NaturalLanguageUnderstanding.v1.Model 21 | { 22 | /// 23 | /// A list of messages describing model training issues when model status is `error`. 24 | /// 25 | public class Notice 26 | { 27 | /// 28 | /// Describes deficiencies or inconsistencies in training data. 29 | /// 30 | [JsonProperty("message", NullValueHandling = NullValueHandling.Ignore)] 31 | public virtual string Message { get; private set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.NaturalLanguageUnderstanding.v1/Model/RelationEntity.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.NaturalLanguageUnderstanding.v1.Model 21 | { 22 | /// 23 | /// An entity that corresponds with an argument in a relation. 24 | /// 25 | public class RelationEntity 26 | { 27 | /// 28 | /// Text that corresponds to the entity. 29 | /// 30 | [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Text { get; set; } 32 | /// 33 | /// Entity type. 34 | /// 35 | [JsonProperty("type", NullValueHandling = NullValueHandling.Ignore)] 36 | public string Type { get; set; } 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/IBM.Watson.NaturalLanguageUnderstanding.v1/Model/SemanticRolesEntity.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.NaturalLanguageUnderstanding.v1.Model 21 | { 22 | /// 23 | /// SemanticRolesEntity. 24 | /// 25 | public class SemanticRolesEntity 26 | { 27 | /// 28 | /// Entity type. 29 | /// 30 | [JsonProperty("type", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Type { get; set; } 32 | /// 33 | /// The entity text. 34 | /// 35 | [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)] 36 | public string Text { get; set; } 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/IBM.Watson.NaturalLanguageUnderstanding.v1/Model/SemanticRolesKeyword.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.NaturalLanguageUnderstanding.v1.Model 21 | { 22 | /// 23 | /// SemanticRolesKeyword. 24 | /// 25 | public class SemanticRolesKeyword 26 | { 27 | /// 28 | /// The keyword text. 29 | /// 30 | [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Text { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.NaturalLanguageUnderstanding.v1/Model/SemanticRolesResultObject.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.NaturalLanguageUnderstanding.v1.Model 22 | { 23 | /// 24 | /// The extracted object from the sentence. 25 | /// 26 | public class SemanticRolesResultObject 27 | { 28 | /// 29 | /// Object text. 30 | /// 31 | [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)] 32 | public string Text { get; set; } 33 | /// 34 | /// An array of extracted keywords. 35 | /// 36 | [JsonProperty("keywords", NullValueHandling = NullValueHandling.Ignore)] 37 | public List Keywords { get; set; } 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/IBM.Watson.NaturalLanguageUnderstanding.v1/Model/SemanticRolesVerb.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.NaturalLanguageUnderstanding.v1.Model 21 | { 22 | /// 23 | /// SemanticRolesVerb. 24 | /// 25 | public class SemanticRolesVerb 26 | { 27 | /// 28 | /// The keyword text. 29 | /// 30 | [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Text { get; set; } 32 | /// 33 | /// Verb tense. 34 | /// 35 | [JsonProperty("tense", NullValueHandling = NullValueHandling.Ignore)] 36 | public string Tense { get; set; } 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/IBM.Watson.NaturalLanguageUnderstanding.v1/Model/SentenceResult.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.NaturalLanguageUnderstanding.v1.Model 22 | { 23 | /// 24 | /// SentenceResult. 25 | /// 26 | public class SentenceResult 27 | { 28 | /// 29 | /// The sentence. 30 | /// 31 | [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)] 32 | public string Text { get; set; } 33 | /// 34 | /// Character offsets indicating the beginning and end of the sentence in the analyzed text. 35 | /// 36 | [JsonProperty("location", NullValueHandling = NullValueHandling.Ignore)] 37 | public List Location { get; set; } 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/IBM.Watson.NaturalLanguageUnderstanding.v1/Model/SummarizationOptions.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2021, 2023. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.NaturalLanguageUnderstanding.v1.Model 21 | { 22 | /// 23 | /// (Experimental) Returns a summary of content. 24 | /// 25 | /// Supported languages: English only. 26 | /// 27 | /// Supported regions: Dallas region only. 28 | /// 29 | public class SummarizationOptions 30 | { 31 | /// 32 | /// Maximum number of summary sentences to return. 33 | /// 34 | [JsonProperty("limit", NullValueHandling = NullValueHandling.Ignore)] 35 | public long? Limit { get; set; } 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /src/IBM.Watson.NaturalLanguageUnderstanding.v1/Model/SyntaxOptions.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.NaturalLanguageUnderstanding.v1.Model 21 | { 22 | /// 23 | /// Returns tokens and sentences from the input text. 24 | /// 25 | public class SyntaxOptions 26 | { 27 | /// 28 | /// Tokenization options. 29 | /// 30 | [JsonProperty("tokens", NullValueHandling = NullValueHandling.Ignore)] 31 | public SyntaxOptionsTokens Tokens { get; set; } 32 | /// 33 | /// Set this to `true` to return sentence information. 34 | /// 35 | [JsonProperty("sentences", NullValueHandling = NullValueHandling.Ignore)] 36 | public bool? Sentences { get; set; } 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/IBM.Watson.NaturalLanguageUnderstanding.v1/Model/SyntaxOptionsTokens.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.NaturalLanguageUnderstanding.v1.Model 21 | { 22 | /// 23 | /// Tokenization options. 24 | /// 25 | public class SyntaxOptionsTokens 26 | { 27 | /// 28 | /// Set this to `true` to return the lemma for each token. 29 | /// 30 | [JsonProperty("lemma", NullValueHandling = NullValueHandling.Ignore)] 31 | public bool? Lemma { get; set; } 32 | /// 33 | /// Set this to `true` to return the part of speech for each token. 34 | /// 35 | [JsonProperty("part_of_speech", NullValueHandling = NullValueHandling.Ignore)] 36 | public bool? PartOfSpeech { get; set; } 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/IBM.Watson.NaturalLanguageUnderstanding.v1/Model/SyntaxResult.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.NaturalLanguageUnderstanding.v1.Model 22 | { 23 | /// 24 | /// Tokens and sentences returned from syntax analysis. 25 | /// 26 | public class SyntaxResult 27 | { 28 | /// 29 | /// Gets or Sets Tokens 30 | /// 31 | [JsonProperty("tokens", NullValueHandling = NullValueHandling.Ignore)] 32 | public List Tokens { get; set; } 33 | /// 34 | /// Gets or Sets Sentences 35 | /// 36 | [JsonProperty("sentences", NullValueHandling = NullValueHandling.Ignore)] 37 | public List Sentences { get; set; } 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/IBM.Watson.NaturalLanguageUnderstanding.v1/Model/TargetedEmotionResults.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.NaturalLanguageUnderstanding.v1.Model 21 | { 22 | /// 23 | /// Emotion results for a specified target. 24 | /// 25 | public class TargetedEmotionResults 26 | { 27 | /// 28 | /// Targeted text. 29 | /// 30 | [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Text { get; set; } 32 | /// 33 | /// The emotion results for the target. 34 | /// 35 | [JsonProperty("emotion", NullValueHandling = NullValueHandling.Ignore)] 36 | public EmotionScores Emotion { get; set; } 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/IBM.Watson.NaturalLanguageUnderstanding.v1/Model/TargetedSentimentResults.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.NaturalLanguageUnderstanding.v1.Model 21 | { 22 | /// 23 | /// TargetedSentimentResults. 24 | /// 25 | public class TargetedSentimentResults 26 | { 27 | /// 28 | /// Targeted text. 29 | /// 30 | [JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)] 31 | public string Text { get; set; } 32 | /// 33 | /// Sentiment score from -1 (negative) to 1 (positive). 34 | /// 35 | [JsonProperty("score", NullValueHandling = NullValueHandling.Ignore)] 36 | public double? Score { get; set; } 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/IBM.Watson.NaturalLanguageUnderstanding.v1/Test/Integration/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyConfiguration("")] 9 | [assembly: AssemblyCompany("")] 10 | [assembly: AssemblyProduct("IBM.Watson.NaturalLanguageUnderstanding.v1.IntegrationTests")] 11 | [assembly: AssemblyTrademark("")] 12 | 13 | // Setting ComVisible to false makes the types in this assembly not visible 14 | // to COM components. If you need to access a type in this assembly from 15 | // COM, set the ComVisible attribute to true on that type. 16 | [assembly: ComVisible(false)] 17 | 18 | // The following GUID is for the ID of the typelib if this project is exposed to COM 19 | [assembly: Guid("a6bc7470-79a2-4c7e-923a-748540791d97")] 20 | -------------------------------------------------------------------------------- /src/IBM.Watson.SpeechToText.v1/Examples/IBM.Watson.SpeechToText.v1.Examples.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | netstandard2.0 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | PreserveNewest 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /src/IBM.Watson.SpeechToText.v1/Examples/SpeechToTextTestData/confirm.abnf: -------------------------------------------------------------------------------- 1 | #ABNF 1.0 ISO-8859-1; 2 | language en-US; 3 | mode voice; 4 | root $yesno; 5 | 6 | $yesno = affirmative | nah | no | nope | yeah | yep | yes | yup | fine 7 | | negative | OK | sure ; 8 | -------------------------------------------------------------------------------- /src/IBM.Watson.SpeechToText.v1/Examples/SpeechToTextTestData/test-audio.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/watson-developer-cloud/dotnet-standard-sdk/6a187d82a37dc6bf97a488816ae0a5bf8ce31710/src/IBM.Watson.SpeechToText.v1/Examples/SpeechToTextTestData/test-audio.wav -------------------------------------------------------------------------------- /src/IBM.Watson.SpeechToText.v1/Examples/SpeechToTextTestData/theJabberwocky-utf8.txt: -------------------------------------------------------------------------------- 1 | The Jabberwocky 2 | 'Twas brillig, and the slithy toves 3 | Did gyre and gimble in the wabe 4 | All mimsy were the borogoves, 5 | And the mome raths outgrabe. 6 | "Beware the Jabberwock, my son! 7 | The jaws that bite, the claws that catch! 8 | Beware the Jubjub bird, and shun 9 | 10 | 11 | The frumious Bandersnatch!" 12 | He took his vorpal sword in hand; 13 | Long time the manxome foe he sought- 14 | So rested he by the Tumtum tree 15 | 16 | 17 | And stood awhile in thought. 18 | And, as in uffish thought he stood, 19 | The Jabberwock, with eyes of flame, 20 | Came whiffling through the tulgey wood, 21 | And burbled as it came! 22 | One, two! One, two! And through and through 23 | The vorpal blade went snicker-snack! 24 | He left it dead, and with its head 25 | He went galumphing back. 26 | "And hast thou slain the Jabberwock? 27 | Come to my arms, my beamish boy! 28 | O frabjous day! Callooh! Callay!" 29 | He chortled in his joy. 30 | 'Twas brillig, and the slithy toves 31 | 32 | Did gyre and gimble in the wabe 33 | All mimsy were the borogoves, 34 | 35 | 36 | And the mome raths outgrabe. 37 | -------------------------------------------------------------------------------- /src/IBM.Watson.SpeechToText.v1/Model/Corpora.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2017, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.SpeechToText.v1.Model 22 | { 23 | /// 24 | /// Information about the corpora from a custom language model. 25 | /// 26 | public class Corpora 27 | { 28 | /// 29 | /// An array of `Corpus` objects that provides information about the corpora for the custom model. The array is 30 | /// empty if the custom model has no corpora. 31 | /// 32 | [JsonProperty("corpora", NullValueHandling = NullValueHandling.Ignore)] 33 | public List _Corpora { get; set; } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/IBM.Watson.SpeechToText.v1/Model/Grammars.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.SpeechToText.v1.Model 22 | { 23 | /// 24 | /// Information about the grammars from a custom language model. 25 | /// 26 | public class Grammars 27 | { 28 | /// 29 | /// An array of `Grammar` objects that provides information about the grammars for the custom model. The array 30 | /// is empty if the custom model has no grammars. 31 | /// 32 | [JsonProperty("grammars", NullValueHandling = NullValueHandling.Ignore)] 33 | public List _Grammars { get; set; } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/IBM.Watson.SpeechToText.v1/Model/RecognitionJobs.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.SpeechToText.v1.Model 22 | { 23 | /// 24 | /// Information about current asynchronous speech recognition jobs. 25 | /// 26 | public class RecognitionJobs 27 | { 28 | /// 29 | /// An array of `RecognitionJob` objects that provides the status for each of the user's current jobs. The array 30 | /// is empty if the user has no current jobs. 31 | /// 32 | [JsonProperty("recognitions", NullValueHandling = NullValueHandling.Ignore)] 33 | public List Recognitions { get; set; } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/IBM.Watson.SpeechToText.v1/Model/SpeechModels.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.SpeechToText.v1.Model 22 | { 23 | /// 24 | /// Information about the available language models. 25 | /// 26 | public class SpeechModels 27 | { 28 | /// 29 | /// An array of `SpeechModel` objects that provides information about each available model. 30 | /// 31 | [JsonProperty("models", NullValueHandling = NullValueHandling.Ignore)] 32 | public List Models { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.SpeechToText.v1/Model/Words.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2017, 2019. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.SpeechToText.v1.Model 22 | { 23 | /// 24 | /// Information about the words from a custom language model. 25 | /// 26 | public class Words 27 | { 28 | /// 29 | /// An array of `Word` objects that provides information about each word in the custom model's words resource. 30 | /// The array is empty if the custom model has no words. 31 | /// 32 | [JsonProperty("words", NullValueHandling = NullValueHandling.Ignore)] 33 | public List _Words { get; set; } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/IBM.Watson.SpeechToText.v1/Test/Integration/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyConfiguration("")] 9 | [assembly: AssemblyCompany("IBM")] 10 | [assembly: AssemblyProduct("IBM.Watson.SpeechToText.v1.IntegrationTests")] 11 | [assembly: AssemblyTrademark("")] 12 | 13 | // Setting ComVisible to false makes the types in this assembly not visible 14 | // to COM components. If you need to access a type in this assembly from 15 | // COM, set the ComVisible attribute to true on that type. 16 | [assembly: ComVisible(false)] 17 | 18 | // The following GUID is for the ID of the typelib if this project is exposed to COM 19 | [assembly: Guid("672f1559-1034-46a3-8c71-22e27efc0886")] 20 | -------------------------------------------------------------------------------- /src/IBM.Watson.SpeechToText.v1/Test/Integration/SpeechToTextTestData/confirm.abnf: -------------------------------------------------------------------------------- 1 | #ABNF 1.0 ISO-8859-1; 2 | language en-US; 3 | mode voice; 4 | root $yesno; 5 | 6 | $yesno = affirmative | nah | no | nope | yeah | yep | yes | yup | fine 7 | | negative | OK | sure ; 8 | -------------------------------------------------------------------------------- /src/IBM.Watson.SpeechToText.v1/Test/Integration/SpeechToTextTestData/test-audio.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/watson-developer-cloud/dotnet-standard-sdk/6a187d82a37dc6bf97a488816ae0a5bf8ce31710/src/IBM.Watson.SpeechToText.v1/Test/Integration/SpeechToTextTestData/test-audio.wav -------------------------------------------------------------------------------- /src/IBM.Watson.SpeechToText.v1/Test/Integration/SpeechToTextTestData/theJabberwocky-utf8.txt: -------------------------------------------------------------------------------- 1 | The Jabberwocky 2 | 'Twas brillig, and the slithy toves 3 | Did gyre and gimble in the wabe 4 | All mimsy were the borogoves, 5 | And the mome raths outgrabe. 6 | "Beware the Jabberwock, my son! 7 | The jaws that bite, the claws that catch! 8 | Beware the Jubjub bird, and shun 9 | 10 | 11 | The frumious Bandersnatch!" 12 | He took his vorpal sword in hand; 13 | Long time the manxome foe he sought- 14 | So rested he by the Tumtum tree 15 | 16 | 17 | And stood awhile in thought. 18 | And, as in uffish thought he stood, 19 | The Jabberwock, with eyes of flame, 20 | Came whiffling through the tulgey wood, 21 | And burbled as it came! 22 | One, two! One, two! And through and through 23 | The vorpal blade went snicker-snack! 24 | He left it dead, and with its head 25 | He went galumphing back. 26 | "And hast thou slain the Jabberwock? 27 | Come to my arms, my beamish boy! 28 | O frabjous day! Callooh! Callay!" 29 | He chortled in his joy. 30 | 'Twas brillig, and the slithy toves 31 | 32 | Did gyre and gimble in the wabe 33 | All mimsy were the borogoves, 34 | 35 | 36 | And the mome raths outgrabe. 37 | -------------------------------------------------------------------------------- /src/IBM.Watson.TextToSpeech.v1/Examples/IBM.Watson.TextToSpeech.v1.Examples.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | netstandard2.0 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/IBM.Watson.TextToSpeech.v1/Model/CustomModels.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2020. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.TextToSpeech.v1.Model 22 | { 23 | /// 24 | /// Information about existing custom models. 25 | /// 26 | public class CustomModels 27 | { 28 | /// 29 | /// An array of `CustomModel` objects that provides information about each available custom model. The array is 30 | /// empty if the requesting credentials own no custom models (if no language is specified) or own no custom 31 | /// models for the specified language. 32 | /// 33 | [JsonProperty("customizations", NullValueHandling = NullValueHandling.Ignore)] 34 | public List Customizations { get; set; } 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/IBM.Watson.TextToSpeech.v1/Model/Prompts.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2021. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.TextToSpeech.v1.Model 22 | { 23 | /// 24 | /// Information about the custom prompts that are defined for a custom model. 25 | /// 26 | public class Prompts 27 | { 28 | /// 29 | /// An array of `Prompt` objects that provides information about the prompts that are defined for the specified 30 | /// custom model. The array is empty if no prompts are defined for the custom model. 31 | /// 32 | [JsonProperty("prompts", NullValueHandling = NullValueHandling.Ignore)] 33 | public List _Prompts { get; set; } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/IBM.Watson.TextToSpeech.v1/Model/Pronunciation.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2018, 2020. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.TextToSpeech.v1.Model 21 | { 22 | /// 23 | /// The pronunciation of the specified text. 24 | /// 25 | public class Pronunciation 26 | { 27 | /// 28 | /// The pronunciation of the specified text in the requested voice and format. If a custom model is specified, 29 | /// the pronunciation also reflects that custom model. 30 | /// 31 | [JsonProperty("pronunciation", NullValueHandling = NullValueHandling.Ignore)] 32 | public string _Pronunciation { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.TextToSpeech.v1/Model/Speaker.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2021. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.TextToSpeech.v1.Model 21 | { 22 | /// 23 | /// Information about a speaker model. 24 | /// 25 | public class Speaker 26 | { 27 | /// 28 | /// The speaker ID (GUID) of the speaker. 29 | /// 30 | [JsonProperty("speaker_id", NullValueHandling = NullValueHandling.Ignore)] 31 | public string SpeakerId { get; set; } 32 | /// 33 | /// The user-defined name of the speaker. 34 | /// 35 | [JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)] 36 | public string Name { get; set; } 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/IBM.Watson.TextToSpeech.v1/Model/SpeakerModel.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2021. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using Newtonsoft.Json; 19 | 20 | namespace IBM.Watson.TextToSpeech.v1.Model 21 | { 22 | /// 23 | /// The speaker ID of the speaker model. 24 | /// 25 | public class SpeakerModel 26 | { 27 | /// 28 | /// The speaker ID (GUID) of the speaker model. 29 | /// 30 | [JsonProperty("speaker_id", NullValueHandling = NullValueHandling.Ignore)] 31 | public string SpeakerId { get; set; } 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/IBM.Watson.TextToSpeech.v1/Model/Speakers.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2021. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.TextToSpeech.v1.Model 22 | { 23 | /// 24 | /// Information about all speaker models for the service instance. 25 | /// 26 | public class Speakers 27 | { 28 | /// 29 | /// An array of `Speaker` objects that provides information about the speakers for the service instance. The 30 | /// array is empty if the service instance has no speakers. 31 | /// 32 | [JsonProperty("speakers", NullValueHandling = NullValueHandling.Ignore)] 33 | public List _Speakers { get; set; } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/IBM.Watson.TextToSpeech.v1/Model/Voices.cs: -------------------------------------------------------------------------------- 1 | /** 2 | * (C) Copyright IBM Corp. 2019, 2020. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | using System.Collections.Generic; 19 | using Newtonsoft.Json; 20 | 21 | namespace IBM.Watson.TextToSpeech.v1.Model 22 | { 23 | /// 24 | /// Information about all available voices. 25 | /// 26 | public class Voices 27 | { 28 | /// 29 | /// A list of available voices. 30 | /// 31 | [JsonProperty("voices", NullValueHandling = NullValueHandling.Ignore)] 32 | public List _Voices { get; set; } 33 | } 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/IBM.Watson.TextToSpeech.v1/Test/Integration/Assets/test-audio.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/watson-developer-cloud/dotnet-standard-sdk/6a187d82a37dc6bf97a488816ae0a5bf8ce31710/src/IBM.Watson.TextToSpeech.v1/Test/Integration/Assets/test-audio.wav -------------------------------------------------------------------------------- /src/IBM.Watson.TextToSpeech.v1/Test/Integration/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyConfiguration("")] 9 | [assembly: AssemblyCompany("IBM")] 10 | [assembly: AssemblyProduct("IBM.Watson.TextToSpeech.v1.IntegrationTests")] 11 | [assembly: AssemblyTrademark("")] 12 | 13 | // Setting ComVisible to false makes the types in this assembly not visible 14 | // to COM components. If you need to access a type in this assembly from 15 | // COM, set the ComVisible attribute to true on that type. 16 | [assembly: ComVisible(false)] 17 | 18 | // The following GUID is for the ID of the typelib if this project is exposed to COM 19 | [assembly: Guid("81eb9e4c-929c-4d23-a995-19e36fa78467")] 20 | --------------------------------------------------------------------------------