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
configure()
protected
configure() : mixed
execute()
protected
execute(InputInterface $input, OutputInterface $output) : mixed
Parameters
- $input : InputInterface
- $output : OutputInterface
collectTemuLeavesWithSpecs()
private
collectTemuLeavesWithSpecs(TemuCategoryInspector $inspector, OutputInterface $output) : mixed
Parameters
- $inspector : TemuCategoryInspector
- $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
extractSpecSummary()
private
extractSpecSummary(mixed $template) : mixed
Parameters
- $template : 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
normalizeText()
private
normalizeText(mixed $value) : mixed
Parameters
- $value : mixed
readMenzzoCategories()
private
readMenzzoCategories(mixed $path, mixed $onlyMissing) : mixed
Parameters
- $path : mixed
- $onlyMissing : mixed
resolvePath()
private
resolvePath(mixed $path) : mixed
Parameters
- $path : 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
tokenize()
private
tokenize(mixed $value) : mixed
Parameters
- $value : mixed
writeSuggestions()
private
writeSuggestions(mixed $path, array<string|int, mixed> $suggestions, mixed $maxSuggestions) : mixed
Parameters
- $path : mixed
- $suggestions : array<string|int, mixed>
- $maxSuggestions : mixed