Update README.md
Browse files
README.md
CHANGED
@@ -9,4 +9,53 @@ pipeline_tag: text-generation
|
|
9 |
---
|
10 |
# Product catalog generator (V2)
|
11 |
This is a the version 2 of [Product catalog generator](https://huggingface.co/BaSalam/Llama2-7b-entity-attr-v1). The dataset has changed with GPT-4 generated data to produce a higer quality response.
|
12 |
-
## Github repo: https://github.com/basalam/product-catalog-generator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
---
|
10 |
# Product catalog generator (V2)
|
11 |
This is a the version 2 of [Product catalog generator](https://huggingface.co/BaSalam/Llama2-7b-entity-attr-v1). The dataset has changed with GPT-4 generated data to produce a higer quality response.
|
12 |
+
## Github repo: https://github.com/basalam/product-catalog-generator
|
13 |
+
|
14 |
+
|
15 |
+
|
16 |
+
## Sample input
|
17 |
+
````python
|
18 |
+
prompt = """instruction': \"here is a product title from a Iranian marketplace. \n give me
|
19 |
+
the Product Entity and Attributes of this product in Persian language.\n give the output in
|
20 |
+
this json format: {'attributes': {'attribute_name' : <attribute value>, ...}, 'product_entity':
|
21 |
+
'<product entity>'}.\n Don't make assumptions about what values to plug into json. Just give
|
22 |
+
Json not a single word more.\n \nproduct title:"""
|
23 |
+
title = """: ست شابلون ژله ای دو قلو صریر 20سانتی 1 عدد
|
24 |
+
1 عدد ست شابلون ژله ای دو قلو سریر 20سانتی متر
|
25 |
+
با کیفیت مناسب و صادراتی
|
26 |
+
شامل دو تکه شابلون ژله ای
|
27 |
+
در چهار رنگ سبز، قرمز، نارنجی و آبی موجود است.
|
28 |
+
پخش لوازم التحریر کیان""""
|
29 |
+
````
|
30 |
+
## Model response
|
31 |
+
````josn
|
32 |
+
{
|
33 |
+
"attributes": {
|
34 |
+
"تعداد در بسته": [
|
35 |
+
"1 عدد"],
|
36 |
+
"نوع": [
|
37 |
+
"ژله ای"],
|
38 |
+
"تعداد قلو": [
|
39 |
+
"دو قلو"],
|
40 |
+
"اندازه": [
|
41 |
+
"20 سانتی متر"],
|
42 |
+
"کیفیت": [
|
43 |
+
"مناسب",
|
44 |
+
"صادراتی"],
|
45 |
+
"تعداد تکه": [
|
46 |
+
"دو تکه"],
|
47 |
+
"رنگ": [
|
48 |
+
"سبز",
|
49 |
+
"قرمز",
|
50 |
+
"نارنجی",
|
51 |
+
"آبی"],
|
52 |
+
"برند": [
|
53 |
+
"پخش لوازم التحریر کیان"]
|
54 |
+
},
|
55 |
+
"product_entity": [
|
56 |
+
"لوازم التحریر",
|
57 |
+
"لوازم هنری",
|
58 |
+
"شابلون",
|
59 |
+
"ست شابلون ژله ای"]
|
60 |
+
}
|
61 |
+
````
|