minhtt32 commited on
Commit
b3c885c
1 Parent(s): 0ba446b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -37,7 +37,7 @@ messages = [
37
  },
38
  {
39
  "role": "user",
40
- "content": "Text: The American Bank Note Company Printing Plant is a repurposed complex of three interconnected buildings in the Hunts Point neighborhood of the Bronx in New York City. The innovative Kirby, Petit & Green design was built in 1909–1911 by the American Bank Note Company on land which had previously been part of Edward G. Faile's country estate. A wide variety of financial instruments were printed there; at one point, over five million documents were produced per day, including half the securities traded on the New York Stock Exchange."
41
  },
42
  {
43
  "role": "assistant",
@@ -45,7 +45,7 @@ messages = [
45
  },
46
  {
47
  "role": "user",
48
- "content": "What describes location in the text?"
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
- # ["Hunts Point", "Bronx", "New York City"]
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.