SaraPiscitelli commited on
Commit
0dfc731
1 Parent(s): 1891c96

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -4
README.md CHANGED
@@ -40,14 +40,13 @@ Refer to the evaluation metrics for a better understanding of its performance.
40
 
41
  You can use the Huggingface pipeline:
42
  ```
43
- # Use a pipeline as a high-level helper
44
  from transformers import pipeline
45
 
46
  qa_model = pipeline("question-answering", model="SaraPiscitelli/roberta-base-qa-v1")
47
 
48
  question = "Which name is also used to describe the Amazon rainforest in English?"
49
- context = "The Amazon rainforest (Portuguese: Floresta Amaz么nica or Amaz么nia; Spanish: Selva Amaz贸nica, Amazon铆a or usually Amazonia; French: For锚t amazonienne; Dutch: Amazoneregenwoud), also known in English as Amazonia or the Amazon Jungle, is a moist broadleaf forest that covers most of the Amazon basin of South America. This basin encompasses 7,000,000 square kilometres (2,700,000 sq mi), of which 5,500,000 square kilometres (2,100,000 sq mi) are covered by the rainforest. This region includes territory belonging to nine nations. The majority of the forest is contained within Brazil, with 60% of the rainforest, followed by Peru with 13%, Colombia with 10%, and with minor amounts in Venezuela, Ecuador, Bolivia, Guyana, Suriname and French Guiana. States or departments in four nations contain "Amazonas" in their names. The Amazon represents over half of the planet's remaining rainforests, and comprises the largest and most biodiverse tract of tropical rainforest in the world, with an estimated 390 billion individual trees divided into 16,000 species."
50
- print(qa_model(question = question, context = context))
51
  ```
52
  or load it directly:
53
  ```
@@ -157,7 +156,7 @@ This was necessary due to the maximum input token limit accepted by the RoBERTa-
157
  )
158
 
159
 
160
- ### Testing Data, Factors & Metrics
161
 
162
  #### Testing Data
163
  To retrieve the dataset, use the following code:
 
40
 
41
  You can use the Huggingface pipeline:
42
  ```
 
43
  from transformers import pipeline
44
 
45
  qa_model = pipeline("question-answering", model="SaraPiscitelli/roberta-base-qa-v1")
46
 
47
  question = "Which name is also used to describe the Amazon rainforest in English?"
48
+ context = """The Amazon rainforest (Portuguese: Floresta Amaz么nica or Amaz么nia; Spanish: Selva Amaz贸nica, Amazon铆a or usually Amazonia; French: For锚t amazonienne; Dutch: Amazoneregenwoud), also known in English as Amazonia or the Amazon Jungle, is a moist broadleaf forest that covers most of the Amazon basin of South America. This basin encompasses 7,000,000 square kilometres (2,700,000 sq mi), of which 5,500,000 square kilometres (2,100,000 sq mi) are covered by the rainforest. This region includes territory belonging to nine nations. The majority of the forest is contained within Brazil, with 60% of the rainforest, followed by Peru with 13%, Colombia with 10%, and with minor amounts in Venezuela, Ecuador, Bolivia, Guyana, Suriname and French Guiana. States or departments in four nations contain "Amazonas" in their names. The Amazon represents over half of the planet's remaining rainforests, and comprises the largest and most biodiverse tract of tropical rainforest in the world, with an estimated 390 billion individual trees divided into 16,000 species."""
49
+ print(qa_model(question = question, context = context)['answer'])
50
  ```
51
  or load it directly:
52
  ```
 
156
  )
157
 
158
 
159
+ ### Testing Data & Evaluation Metrics
160
 
161
  #### Testing Data
162
  To retrieve the dataset, use the following code: