Update README.md
Browse files
README.md
CHANGED
@@ -36,15 +36,14 @@ entity_int_out_format_en = {
|
|
36 |
}
|
37 |
```
|
38 |
|
39 |
-
|
40 |
-
|
41 |
-
Please refer to [ner_template.py](https://github.com/zjunlp/DeepKE/blob/main/example/llm/InstructKGC/kg2instruction/ner_template.py)、[re_template.py](https://github.com/zjunlp/DeepKE/blob/main/example/llm/InstructKGC/kg2instruction/re_template.py)、[ee_template.py](https://github.com/zjunlp/DeepKE/blob/main/example/llm/InstructKGC/kg2instruction/ee_template.py) for more details about the templates.
|
42 |
|
|
|
43 |
|
44 |
# 3.Convert script
|
45 |
-
We have provided a script at [convert.py](https://github.com/zjunlp/DeepKE/blob/main/example/llm/InstructKGC/kg2instruction/convert.py) to uniformly convert data into KnowLM instructions.
|
46 |
|
47 |
-
The [data](https://github.com/zjunlp/DeepKE/tree/main/example/llm/InstructKGC/data) directory contains the expected data format for each task before executing convert.py
|
|
|
48 |
|
49 |
```bash
|
50 |
python kg2instruction/convert.py \
|
|
|
36 |
}
|
37 |
```
|
38 |
|
39 |
+
Both the schema and format placeholders ({s_schema} and {s_format}) are embedded within the templates and must be specified by users.
|
|
|
|
|
40 |
|
41 |
+
For a more comprehensive understanding of the templates, please refer to the files [ner_template.py](https://github.com/zjunlp/DeepKE/blob/main/example/llm/InstructKGC/kg2instruction/ner_template.py)、[re_template.py](https://github.com/zjunlp/DeepKE/blob/main/example/llm/InstructKGC/kg2instruction/re_template.py)、[ee_template.py](https://github.com/zjunlp/DeepKE/blob/main/example/llm/InstructKGC/kg2instruction/ee_template.py) .
|
42 |
|
43 |
# 3.Convert script
|
|
|
44 |
|
45 |
+
A script named [convert.py](https://github.com/zjunlp/DeepKE/blob/main/example/llm/InstructKGC/kg2instruction/convert.py) is provided to facilitate the uniform conversion of data into KnowLM instructions. The [data](https://github.com/zjunlp/DeepKE/tree/main/example/llm/InstructKGC/data) directory contains the expected data format for each task before executing convert.py.
|
46 |
+
|
47 |
|
48 |
```bash
|
49 |
python kg2instruction/convert.py \
|