Commit
·
aac42ae
1
Parent(s):
6d64e45
Update README.md
Browse files
README.md
CHANGED
@@ -44,16 +44,32 @@ It detects the following types of entities:
|
|
44 |
|
45 |
The [Sefaria-Project](https://github.com/Sefaria/Sefaria-Project) repo can use this model to return objects linked to objects in the Sefaria database. Non-citation entities are linked to `Topic` objects and citation entities are linked to `Ref` objects.
|
46 |
|
|
|
|
|
47 |
### Configuring Sefaria-Project to use this model
|
48 |
|
49 |
The assumption is that Sefaria-Project is set up on your environment following the instructions in our [README](https://github.com/Sefaria/Sefaria-Project/blob/master/README.mkd).
|
50 |
|
|
|
|
|
51 |
In `local_settings.py`, modify the following lines:
|
52 |
|
53 |
```python
|
|
|
|
|
54 |
RAW_REF_MODEL_BY_LANG_FILEPATH = {
|
55 |
"he": "/path/to/he-ref-ner model"
|
56 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
```
|
58 |
|
59 |
### Running the model with Sefaria-Project
|
|
|
44 |
|
45 |
The [Sefaria-Project](https://github.com/Sefaria/Sefaria-Project) repo can use this model to return objects linked to objects in the Sefaria database. Non-citation entities are linked to `Topic` objects and citation entities are linked to `Ref` objects.
|
46 |
|
47 |
+
Note, this model is designed to be used in conjunction with the corresponding [subref model](https://huggingface.co/Sefaria/he_subref_ner). That model takes citations as input and tags the parts of the citation. The below instructions explain how to integrate both of these models into Sefaria-Project.
|
48 |
+
|
49 |
### Configuring Sefaria-Project to use this model
|
50 |
|
51 |
The assumption is that Sefaria-Project is set up on your environment following the instructions in our [README](https://github.com/Sefaria/Sefaria-Project/blob/master/README.mkd).
|
52 |
|
53 |
+
Download this repo and the [subref repo](https://huggingface.co/Sefaria/he_subref_ner).
|
54 |
+
|
55 |
In `local_settings.py`, modify the following lines:
|
56 |
|
57 |
```python
|
58 |
+
ENABLE_LINKER = True
|
59 |
+
|
60 |
RAW_REF_MODEL_BY_LANG_FILEPATH = {
|
61 |
"he": "/path/to/he-ref-ner model"
|
62 |
}
|
63 |
+
|
64 |
+
RAW_REF_PART_MODEL_BY_LANG_FILEPATH = {
|
65 |
+
"he": "/path/to/he-subref-ner model",
|
66 |
+
}
|
67 |
+
```
|
68 |
+
|
69 |
+
Make sure spaCy is installed.
|
70 |
+
|
71 |
+
```bash
|
72 |
+
pip install spacy==3.4.1
|
73 |
```
|
74 |
|
75 |
### Running the model with Sefaria-Project
|