var aiNameWeightedVariants = new AiNameWeightedVariants
{
Names = new List<AiNameWeighted>
{
new AiNameWeighted
{
Name = "J. Cane",
Score = 1
},
new AiNameWeighted
{
Name = "Mr. Cane",
Score = 0.75
}
}
};
AiNameWeightedVariants aiNameWeightedVariants = Models.aiNameWeightedVariants()
.names(Arrays.<AiNameWeighted>asList(
Models.aiNameWeighted()
.name("J. Cane")
.score(1)
.build(),
Models.aiNameWeighted()
.name("Mr. Cane")
.score(0.75)
.build()))
.build();
ai_name_weighted_variants = models.AiNameWeightedVariants(
names=[
models.AiNameWeighted(
name='J. Cane',
score=1),
models.AiNameWeighted(
name='Mr. Cane',
score=0.75)])
ai_name_weighted_variants = AiNameWeightedVariants.new(
names: [
AiNameWeighted.new(
name: 'J. Cane',
score: 1),
AiNameWeighted.new(
name: 'Mr. Cane',
score: 0.75)])
let aiNameWeightedVariants = Models.aiNameWeightedVariants()
.names([
Models.aiNameWeighted()
.name('J. Cane')
.score(1)
.build(),
Models.aiNameWeighted()
.name('Mr. Cane')
.score(0.75)
.build()])
.build();
$aiNameWeightedVariants = Models::aiNameWeightedVariants()
->names(array(
Models::aiNameWeighted()
->name('J. Cane')
->score(1)
->build(),
Models::aiNameWeighted()
->name('Mr. Cane')
->score(0.75)
->build()))
->build();