Update README.md
Browse files
README.md
CHANGED
@@ -21,20 +21,12 @@ conda install pytorch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0 cpuonly -c py
|
|
21 |
pip install -e .
|
22 |
```
|
23 |
|
24 |
-
Download resources
|
25 |
-
```
|
26 |
-
wget ... -o ./data/entity_corpus/elq_entity_corpus.jsonl
|
27 |
-
wget ... -o ./data/models/entity_linking/elq_wikipedia/elq_entity_corpus
|
28 |
-
```
|
29 |
-
|
30 |
Entity Linking
|
31 |
```python
|
32 |
from okean.modules.entity_linking.elq import ELQ
|
33 |
|
34 |
model = ELQ.from_pretrained(
|
35 |
model_name_or_path="panuthept/okean-elq-wikipedia",
|
36 |
-
entity_corpus_path="./data/entity_corpus/elq_entity_corpus.jsonl",
|
37 |
-
precomputed_entity_corpus_path="./data/models/entity_linking/elq_wikipedia/elq_entity_corpus",
|
38 |
)
|
39 |
|
40 |
texts = [
|
@@ -67,8 +59,6 @@ from okean.data_types.basic_types import Passage, Span
|
|
67 |
|
68 |
model = ELQ.from_pretrained(
|
69 |
model_name_or_path="panuthept/okean-elq-wikipedia",
|
70 |
-
entity_corpus_path="./data/entity_corpus/elq_entity_corpus.jsonl",
|
71 |
-
precomputed_entity_corpus_path="./data/models/entity_linking/elq_wikipedia/elq_entity_corpus",
|
72 |
)
|
73 |
|
74 |
passages = [
|
|
|
21 |
pip install -e .
|
22 |
```
|
23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
Entity Linking
|
25 |
```python
|
26 |
from okean.modules.entity_linking.elq import ELQ
|
27 |
|
28 |
model = ELQ.from_pretrained(
|
29 |
model_name_or_path="panuthept/okean-elq-wikipedia",
|
|
|
|
|
30 |
)
|
31 |
|
32 |
texts = [
|
|
|
59 |
|
60 |
model = ELQ.from_pretrained(
|
61 |
model_name_or_path="panuthept/okean-elq-wikipedia",
|
|
|
|
|
62 |
)
|
63 |
|
64 |
passages = [
|