59b812288d7b4e58f7a80f8d182358463114f113,examples/pytorch_lstm_tagger.py,,main,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,104
Before Change
cfg = dict(locals())
print(cfg)
train_data, check_data, nr_tag = ancora_pos_tags()
train_data = train_data[:100]
check_data = check_data[:100]
extracter = FeatureExtracter("es", attrs=[LOWER, SHAPE, PREFIX, SUFFIX])
with Model.define_operators({"**": clone, ">>": chain, "+": add,
After Change
if CupyOps.xp != None:
print("Use GPU")
torch.set_default_tensor_type("torch.cuda.FloatTensor")
Model.ops = CupyOps()
Model.Ops = CupyOps
cfg = dict(locals())
print(cfg)
train_data, check_data, nr_tag = ancora_pos_tags()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: explosion/thinc
Commit Name: 59b812288d7b4e58f7a80f8d182358463114f113
Time: 2018-09-11
Author: honnibal@gmail.com
File Name: examples/pytorch_lstm_tagger.py
Class Name:
Method Name: main
Project Name: explosion/thinc
Commit Name: 60158a8318da47a0839ceac07f31d9e226664a97
Time: 2018-09-11
Author: honnibal@gmail.com
File Name: examples/pytorch_lstm_tagger.py
Class Name:
Method Name: main
Project Name: explosion/thinc
Commit Name: 2a789ef05ee8c2b5ac5042d6533df2f31fb01130
Time: 2017-02-01
Author: honnibal@gmail.com
File Name: examples/quora_similarity.py
Class Name:
Method Name: main