forked from kubapok/en-ner-conll-2003
added view of tags and tokens
This commit is contained in:
parent
ff95d0bcc7
commit
38f721090a
@ -54,6 +54,9 @@ vocab = build_vocab(tokens)
|
|||||||
train_labels = labels_process(tags)
|
train_labels = labels_process(tags)
|
||||||
train_tokens_ids = data_process(tokens)
|
train_tokens_ids = data_process(tokens)
|
||||||
|
|
||||||
|
print(train_labels[0][:10])
|
||||||
|
print(train_tokens_ids[0][:10])
|
||||||
|
|
||||||
ner_model = NERModel()
|
ner_model = NERModel()
|
||||||
nn_model = NeuralNetworkModel(len(train_tokens_ids))
|
nn_model = NeuralNetworkModel(len(train_tokens_ids))
|
||||||
criterion = torch.nn.CrossEntropyLoss()
|
criterion = torch.nn.CrossEntropyLoss()
|
||||||
|
Loading…
Reference in New Issue
Block a user