cpi-connect commited on
Commit
ca8acdc
1 Parent(s): aa5f921

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +12 -1
README.md CHANGED
@@ -22,4 +22,15 @@ The following description is taken from the CASIE paper:
22
  - A **realis** value specifies whether or not an event occurred and can be one of the three values: Actual (event actually happened), Other (failed event, future event), or Generic (an undetermined/non-specific event, such as referring to the concept of phishing attacks).
23
 
24
  # Example
25
- ![Graph](Graph.png)
 
 
 
 
 
 
 
 
 
 
 
 
22
  - A **realis** value specifies whether or not an event occurred and can be one of the three values: Actual (event actually happened), Other (failed event, future event), or Generic (an undetermined/non-specific event, such as referring to the concept of phishing attacks).
23
 
24
  # Example
25
+ ![Graph](Graph.png)
26
+
27
+ # Usage
28
+ ```
29
+ from transformers import AutoModelForTokenClassification
30
+ model = AutoModelForTokenClassification.from_pretrained("CyberPeace-Institute/Cybersecurity-Knowledge-Graph", trust_remote_code=True)
31
+
32
+ input_text = "This is a Cybersecurity-related text."
33
+
34
+ output = model(input_text)
35
+ ```
36
+ IMPORTANT! : To get the Argument to Role coreferences, use the dedicated **space**! You can download the models under "arg_role_models/".