krinal commited on
Commit
ad500e8
1 Parent(s): 61d1bc4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -12
README.md CHANGED
@@ -24,18 +24,11 @@ This model is a fine-tuned version of [roberta-base](https://huggingface.co/robe
24
  # Usage
25
 
26
  ```python
27
- test_query= [
28
- "The 2022 FIFA World Cup was the 22nd FIFA World Cup, the quadrennial world championship for national football teams organized by FIFA.",
29
- "Argentina were crowned the champions after winning the final against the title holder France 4-2 on penalties following a 3-3 draw after extra time.",
30
- "It was Argentina's third title and their first since 1986, as well being the first nation from outside of Europe to win the tournament since 2002.",
31
- "French player Kylian Mbappé became the first player to score a hat-trick in a World Cup final since Geoff Hurst in the 1966 final and won the Golden Boot as he scored the most goals (eight) during the tournament.",
32
- "Argentine captain Lionel Messi was voted the tournament's best player, winning the Golden Ball. Teammates Emiliano Martínez and Enzo Fernández won the Golden Glove, awarded to the tournament's best goalkeeper, and the Young Player Award, awarded to the tournament's best young player."
33
- ]
34
- entities_per_query = model.predict(test_query)
35
-
36
- for entities in entities_per_query:
37
- for entity in entities:
38
- print(entity["span"], "-->", entity["label"])
39
  ```
40
 
41
  ## Training and evaluation data
 
24
  # Usage
25
 
26
  ```python
27
+ from span_marker import SpanMarkerModel
28
+
29
+ model = SpanMarkerModel.from_pretrained("krinal/span-marker-robert-base")
30
+
31
+ ner_result = model.predict("Argentine captain Lionel Messi won Golden Ball at FIFA world cup 2022")
 
 
 
 
 
 
 
32
  ```
33
 
34
  ## Training and evaluation data