Update README.md
Browse files
README.md
CHANGED
@@ -37,7 +37,7 @@ messages = [
|
|
37 |
},
|
38 |
{
|
39 |
"role": "user",
|
40 |
-
"content": "Text:
|
41 |
},
|
42 |
{
|
43 |
"role": "assistant",
|
@@ -45,7 +45,7 @@ messages = [
|
|
45 |
},
|
46 |
{
|
47 |
"role": "user",
|
48 |
-
"content": "What describes
|
49 |
}
|
50 |
]
|
51 |
prompt = pipe.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
@@ -60,7 +60,7 @@ print(outputs[0]["generated_text"])
|
|
60 |
# <|user|>
|
61 |
# What describes location in the text?</s>
|
62 |
# <|assistant|>
|
63 |
-
# ["
|
64 |
```
|
65 |
|
66 |
### Note: Inferences are based on one entity type at a time. For multiple entity types, create separate instances for each type.
|
|
|
37 |
},
|
38 |
{
|
39 |
"role": "user",
|
40 |
+
"content": "Text: VinBigData Joint Stock Company provides platform technology solutions and advanced products based on Big Data and Artificial Intelligence. With a staff of professors, doctors, and global technology experts, VinBigData is currently developing and deploying products such as ViVi virtual assistant, VinBase the comprehensive multi-cognitive artificial intelligence ecosystem, Vizone the ecosystem of smart image analysis solutions, VinDr the medical image digitization platform,..."
|
41 |
},
|
42 |
{
|
43 |
"role": "assistant",
|
|
|
45 |
},
|
46 |
{
|
47 |
"role": "user",
|
48 |
+
"content": "What describes products in the text?"
|
49 |
}
|
50 |
]
|
51 |
prompt = pipe.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
|
|
60 |
# <|user|>
|
61 |
# What describes location in the text?</s>
|
62 |
# <|assistant|>
|
63 |
+
# ["ViVi", "VinBase", "Vizone", "VinDr"]
|
64 |
```
|
65 |
|
66 |
### Note: Inferences are based on one entity type at a time. For multiple entity types, create separate instances for each type.
|