arazd commited on
Commit
cee7259
1 Parent(s): ef0c027

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -2
README.md CHANGED
@@ -33,10 +33,12 @@ tokenizer = AutoTokenizer.from_pretrained(mpath)
33
 
34
  To use MIReAD for feature extraction and classification:
35
  ```python
36
- # sample abstract text
 
37
  abstr = 'Learning semantically meaningful representations from scientific documents can ...'
 
38
  source_len = 512
39
- inputs = tokenizer(abstr,
40
  max_length = source_len,
41
  pad_to_max_length=True,
42
  truncation=True,
 
33
 
34
  To use MIReAD for feature extraction and classification:
35
  ```python
36
+ # sample abstract & title text
37
+ title = 'MIReAD: simple method for learning scientific representations'
38
  abstr = 'Learning semantically meaningful representations from scientific documents can ...'
39
+ text = title + tokenizer.sep_token + abstr
40
  source_len = 512
41
+ inputs = tokenizer(text,
42
  max_length = source_len,
43
  pad_to_max_length=True,
44
  truncation=True,