Update README.md
Browse files
README.md
CHANGED
@@ -7,8 +7,23 @@ sdk: static
|
|
7 |
pinned: false
|
8 |
---
|
9 |
|
10 |
-
<img src="https://raw.githubusercontent.com/asahi417/relbert/test/assets/relbert_logo.png" alt="" width="
|
11 |
|
12 |
-
RelBERT
|
|
|
|
|
13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
pinned: false
|
8 |
---
|
9 |
|
10 |
+
<img src="https://raw.githubusercontent.com/asahi417/relbert/test/assets/relbert_logo.png" alt="" width="150" style="margin-left:'auto' margin-right:'auto' display:'block'"/>
|
11 |
|
12 |
+
<h1>RelBERT</h1>
|
13 |
+
High-quality semantic representative embedding of word pairs powered by pre-trained language model.
|
14 |
+
All you need is to install <a href="https://pypi.org/project/relbert/">relbert</a> library by <b> pip install relbert</b> and explore in python as below.
|
15 |
|
16 |
+
<pre class="line-numbers">
|
17 |
+
<code class="language-python">
|
18 |
+
from relbert import RelBERT
|
19 |
+
model = RelBERT('asahi417/relbert-roberta-large')
|
20 |
+
vector = model.get_embedding(['Tokyo', 'Japan']) # shape of (1024, )
|
21 |
+
</code>
|
22 |
+
</pre>
|
23 |
|
24 |
+
See more information bellow.
|
25 |
+
<ul>
|
26 |
+
<li><a href="https://arxiv.org/abs/2110.15705">RelBERT paper (EMNLP 2021 main conference) </a></li>
|
27 |
+
<li><a href="https://github.com/asahi417/relbert">GitHub</a></li>
|
28 |
+
<li><a href="https://pypi.org/project/relbert">pip</a></li>
|
29 |
+
</ul>
|