Update README.md
Browse files
README.md
CHANGED
@@ -4,11 +4,13 @@ This is Augmented Code Model which is a fined-tune model of [CodeBERT](https://h
|
|
4 |
## How to use the model ?
|
5 |
Similar to other huggingface model, you may load the model as follows.
|
6 |
```python
|
7 |
-
from transformers import AutoTokenizer, AutoModel
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
11 |
-
model = AutoModel.from_pretrained("microsoft/codebert-base")
|
12 |
```
|
13 |
Then you may use it to infer the similarity between a given docstring and code.
|
14 |
|
|
|
4 |
## How to use the model ?
|
5 |
Similar to other huggingface model, you may load the model as follows.
|
6 |
```python
|
|
|
7 |
|
8 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
9 |
+
|
10 |
+
tokenizer = AutoTokenizer.from_pretrained("Fujitsu/AugCode")
|
11 |
+
|
12 |
+
model = AutoModelForSequenceClassification.from_pretrained("Fujitsu/AugCode")
|
13 |
|
|
|
14 |
```
|
15 |
Then you may use it to infer the similarity between a given docstring and code.
|
16 |
|