var aiNameComponentList = new AiNameComponentList
{
Value = new List<AiNameComponent>
{
new AiNameComponent
{
Value = "John",
Category = "FirstName",
Score = 0.95
},
new AiNameComponent
{
Value = "Cane",
Category = "LastName",
Score = 0.5,
Position = 5
},
new AiNameComponent
{
Value = "%F%L",
Category = "Format"
},
new AiNameComponent
{
Value = "0.5",
Category = "Score",
Score = 0.5
}
}
};
AiNameComponentList aiNameComponentList = Models.aiNameComponentList()
.value(Arrays.<AiNameComponent>asList(
Models.aiNameComponent()
.value("John")
.category("FirstName")
.score(0.95)
.build(),
Models.aiNameComponent()
.value("Cane")
.category("LastName")
.score(0.5)
.position(5)
.build(),
Models.aiNameComponent()
.value("%F%L")
.category("Format")
.build(),
Models.aiNameComponent()
.value("0.5")
.category("Score")
.score(0.5)
.build()))
.build();
ai_name_component_list = models.AiNameComponentList(
value=[
models.AiNameComponent(
value='John',
category='FirstName',
score=0.95),
models.AiNameComponent(
value='Cane',
category='LastName',
score=0.5,
position=5),
models.AiNameComponent(
value='%F%L',
category='Format'),
models.AiNameComponent(
value='0.5',
category='Score',
score=0.5)])
ai_name_component_list = AiNameComponentList.new(
value: [
AiNameComponent.new(
value: 'John',
category: 'FirstName',
score: 0.95),
AiNameComponent.new(
value: 'Cane',
category: 'LastName',
score: 0.5,
position: 5),
AiNameComponent.new(
value: '%F%L',
category: 'Format'),
AiNameComponent.new(
value: '0.5',
category: 'Score',
score: 0.5)])
let aiNameComponentList = Models.aiNameComponentList()
.value([
Models.aiNameComponent()
.value('John')
.category('FirstName')
.score(0.95)
.build(),
Models.aiNameComponent()
.value('Cane')
.category('LastName')
.score(0.5)
.position(5)
.build(),
Models.aiNameComponent()
.value('%F%L')
.category('Format')
.build(),
Models.aiNameComponent()
.value('0.5')
.category('Score')
.score(0.5)
.build()])
.build();
$aiNameComponentList = Models::aiNameComponentList()
->value(array(
Models::aiNameComponent()
->value('John')
->category('FirstName')
->score(0.95)
->build(),
Models::aiNameComponent()
->value('Cane')
->category('LastName')
->score(0.5)
->position(5)
->build(),
Models::aiNameComponent()
->value('%F%L')
->category('Format')
->build(),
Models::aiNameComponent()
->value('0.5')
->category('Score')
->score(0.5)
->build()))
->build();