zekun-li commited on
Commit
73d9f92
1 Parent(s): a5502e4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -83,7 +83,7 @@ model = AutoModelForTokenClassification.from_pretrained(model_name)
83
  input_sentence = "Minneapolis, officially the City of Minneapolis, is a city in the state of Minnesota and the county seat of Hennepin County."
84
 
85
  # Tokenize input sentence
86
- tokens = tokenizer.encode(input_sentence, truncation=True, padding=True, return_tensors="pt")
87
 
88
  # Pass tokens through the model
89
  outputs = model(tokens)
 
83
  input_sentence = "Minneapolis, officially the City of Minneapolis, is a city in the state of Minnesota and the county seat of Hennepin County."
84
 
85
  # Tokenize input sentence
86
+ tokens = tokenizer.encode(input_sentence, return_tensors="pt")
87
 
88
  # Pass tokens through the model
89
  outputs = model(tokens)