Merge pull request 'v0.6.0-output_text_image' (#19) from v0.6.0-output_text_image into main
Reviewed-on: #19
This commit was merged in pull request #19.
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
name = "YiemAgent"
|
name = "YiemAgent"
|
||||||
uuid = "e012c34b-7f78-48e0-971c-7abb83b6f0a2"
|
uuid = "e012c34b-7f78-48e0-971c-7abb83b6f0a2"
|
||||||
version = "0.6.3"
|
version = "0.6.4"
|
||||||
authors = ["narawat lamaiin <narawat@outlook.com>"]
|
authors = ["narawat lamaiin <narawat@outlook.com>"]
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|||||||
@@ -833,6 +833,7 @@ function extractWineAttributes_1(a::T1, input::T2; maxattempt=10
|
|||||||
|
|
||||||
# check each attributes against each column in a database table with BM25
|
# check each attributes against each column in a database table with BM25
|
||||||
for (k, v) in responsedict
|
for (k, v) in responsedict
|
||||||
|
if k ∉ ["wine_price_min", "wine_price_max"]
|
||||||
words_catalog = GeneralUtils.harvest_entity_catalog(a.context.pg_conn_str, "wine", k)
|
words_catalog = GeneralUtils.harvest_entity_catalog(a.context.pg_conn_str, "wine", k)
|
||||||
resolved_word = GeneralUtils.resolve_entity(v, words_catalog;threshold=0.9)
|
resolved_word = GeneralUtils.resolve_entity(v, words_catalog;threshold=0.9)
|
||||||
responsedict[k] = resolved_word
|
responsedict[k] = resolved_word
|
||||||
|
|||||||
Reference in New Issue
Block a user