Logidav Docs

TemuSuggestCategoryMappingCommand extends ContainerAwareCommand
in package

Propose une correspondance Temu pour les catégories Menzzo en se basant sur la similarité de nom et la disponibilité des specId.

Table of Contents

Methods

configure()  : mixed
execute()  : mixed
collectTemuLeavesWithSpecs()  : mixed
computeSimilarityScore()  : mixed
extractInt()  : mixed
extractSpecSummary()  : mixed
extractString()  : mixed
formatTemuLeaf()  : mixed
normalizeText()  : mixed
readMenzzoCategories()  : mixed
resolvePath()  : mixed
suggestForCategory()  : mixed
tokenize()  : mixed
writeSuggestions()  : mixed

Methods

execute()

protected execute(InputInterface $input, OutputInterface $output) : mixed
Parameters
$input : InputInterface
$output : OutputInterface

computeSimilarityScore()

private computeSimilarityScore(mixed $menzzoName, array<string|int, mixed> $menzzoTokens, mixed $temuName, array<string|int, mixed> $temuTokens) : mixed
Parameters
$menzzoName : mixed
$menzzoTokens : array<string|int, mixed>
$temuName : mixed
$temuTokens : array<string|int, mixed>

extractInt()

private extractInt(array<string|int, mixed> $row, array<string|int, mixed> $map, mixed $column) : mixed
Parameters
$row : array<string|int, mixed>
$map : array<string|int, mixed>
$column : mixed

extractString()

private extractString(array<string|int, mixed> $row, array<string|int, mixed> $map, mixed $column) : mixed
Parameters
$row : array<string|int, mixed>
$map : array<string|int, mixed>
$column : mixed

formatTemuLeaf()

private formatTemuLeaf(array<string|int, mixed> $path, mixed $template) : mixed
Parameters
$path : array<string|int, mixed>
$template : mixed

readMenzzoCategories()

private readMenzzoCategories(mixed $path, mixed $onlyMissing) : mixed
Parameters
$path : mixed
$onlyMissing : mixed

suggestForCategory()

private suggestForCategory(array<string|int, mixed> $category, array<string|int, mixed> $temuLeaves, mixed $maxSuggestions, mixed $minScore) : mixed
Parameters
$category : array<string|int, mixed>
$temuLeaves : array<string|int, mixed>
$maxSuggestions : mixed
$minScore : mixed

writeSuggestions()

private writeSuggestions(mixed $path, array<string|int, mixed> $suggestions, mixed $maxSuggestions) : mixed
Parameters
$path : mixed
$suggestions : array<string|int, mixed>
$maxSuggestions : mixed

        
On this page

Search results