added view of tags and tokens

This commit is contained in:
Dawid 2021-06-08 21:46:42 +02:00
parent ff95d0bcc7
commit 38f721090a

View File

@ -54,6 +54,9 @@ vocab = build_vocab(tokens)
train_labels = labels_process(tags)
train_tokens_ids = data_process(tokens)
print(train_labels[0][:10])
print(train_tokens_ids[0][:10])
ner_model = NERModel()
nn_model = NeuralNetworkModel(len(train_tokens_ids))
criterion = torch.nn.CrossEntropyLoss()