KeyPhraseExtractionSkill.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
package com.azure.search.documents.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* A skill that uses text analytics for key phrase extraction.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type")
@JsonTypeName("#Microsoft.Skills.Text.KeyPhraseExtractionSkill")
@Fluent
public final class KeyPhraseExtractionSkill extends Skill {
/*
* A value indicating which language code to use. Default is en. Possible
* values include: 'da', 'nl', 'en', 'fi', 'fr', 'de', 'it', 'ja', 'ko',
* 'no', 'pl', 'pt-PT', 'pt-BR', 'ru', 'es', 'sv'
*/
@JsonProperty(value = "defaultLanguageCode")
private KeyPhraseExtractionSkillLanguage defaultLanguageCode;
/*
* A number indicating how many key phrases to return. If absent, all
* identified key phrases will be returned.
*/
@JsonProperty(value = "maxKeyPhraseCount")
private Integer maxKeyPhraseCount;
/**
* Get the defaultLanguageCode property: A value indicating which language
* code to use. Default is en. Possible values include: 'da', 'nl', 'en',
* 'fi', 'fr', 'de', 'it', 'ja', 'ko', 'no', 'pl', 'pt-PT', 'pt-BR', 'ru',
* 'es', 'sv'.
*
* @return the defaultLanguageCode value.
*/
public KeyPhraseExtractionSkillLanguage getDefaultLanguageCode() {
return this.defaultLanguageCode;
}
/**
* Set the defaultLanguageCode property: A value indicating which language
* code to use. Default is en. Possible values include: 'da', 'nl', 'en',
* 'fi', 'fr', 'de', 'it', 'ja', 'ko', 'no', 'pl', 'pt-PT', 'pt-BR', 'ru',
* 'es', 'sv'.
*
* @param defaultLanguageCode the defaultLanguageCode value to set.
* @return the KeyPhraseExtractionSkill object itself.
*/
public KeyPhraseExtractionSkill setDefaultLanguageCode(KeyPhraseExtractionSkillLanguage defaultLanguageCode) {
this.defaultLanguageCode = defaultLanguageCode;
return this;
}
/**
* Get the maxKeyPhraseCount property: A number indicating how many key
* phrases to return. If absent, all identified key phrases will be
* returned.
*
* @return the maxKeyPhraseCount value.
*/
public Integer getMaxKeyPhraseCount() {
return this.maxKeyPhraseCount;
}
/**
* Set the maxKeyPhraseCount property: A number indicating how many key
* phrases to return. If absent, all identified key phrases will be
* returned.
*
* @param maxKeyPhraseCount the maxKeyPhraseCount value to set.
* @return the KeyPhraseExtractionSkill object itself.
*/
public KeyPhraseExtractionSkill setMaxKeyPhraseCount(Integer maxKeyPhraseCount) {
this.maxKeyPhraseCount = maxKeyPhraseCount;
return this;
}
}