HHansi commited on
Commit
39fd256
·
verified ·
1 Parent(s): 39ca7aa

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +47 -0
README.md CHANGED
@@ -1,3 +1,50 @@
1
  ---
2
  license: apache-2.0
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ language:
4
+ - en
5
  ---
6
+
7
+ # ACCORD NLP
8
+
9
+ ACCORD-NLP is a Natural Language Processing (NLP) framework developed by the [ACCORD](https://accordproject.eu/) project to facilitate Automated Compliance Checking (ACC) within the Architecture, Engineering, and Construction (AEC) sector.
10
+ It consists of several pre-trained/fine-tuned machine learning models to perform the following information extraction tasks from regulatory text.
11
+ 1. Entity Extraction/Classification (ner)
12
+ 2. Relation Extraction/Classification (re)
13
+
14
+ ## Installation
15
+
16
+ ### From Source
17
+ ```
18
+ git clone https://github.com/Accord-Project/accord-nlp.git
19
+ cd accord-nlp
20
+ pip install -r requirements.txt
21
+ ```
22
+
23
+ ### From pip
24
+ ```
25
+ pip install accord-nlp
26
+ ```
27
+
28
+ ## Using Pre-trained Models
29
+
30
+ ### Entity Extraction/Classification (ner)
31
+
32
+ ```python
33
+ from accord_nlp.text_classification.ner.ner_model import NERModel
34
+
35
+ model = NERModel('roberta', 'ACCORD-NLP/ner-roberta-large')
36
+ predictions, raw_outputs = model.predict(['The gradient of the passageway should not exceed five per cent.'])
37
+ print(predictions)
38
+ ```
39
+
40
+ ### Relation Extraction/Classification (re)
41
+
42
+ ```python
43
+ from accord_nlp.text_classification.relation_extraction.re_model import REModel
44
+
45
+ model = REModel('roberta', 'ACCORD-NLP/re-roberta-large')
46
+ predictions, raw_outputs = model.predict(['The <e1>gradient<\e1> of the passageway should not exceed <e2>five per cent</e2>.'])
47
+ print(predictions)
48
+ ```
49
+
50
+ For more details, please refer to the [ACCORD-NLP](https://github.com/Accord-Project/accord-nlp) GitHub repository.