Skip to content

Commit 1da8138

Browse files
committed
LstmCrfNer example: added downloading of meta file
1 parent 6479706 commit 1da8138

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎test/TensorFlowNET.Examples/TextProcess/NER/LstmCrfNer.cs‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,13 @@ public void PrepareData()
200200
// 2. get processing functions that map str -> id
201201
dev = new CoNLLDataset(hp.filepath_dev, hp);
202202
train = new CoNLLDataset(hp.filepath_train, hp);
203+
204+
// download graph meta data
205+
var meta_file = "lstm_crf_ner.meta";
206+
var meta_path = Path.Combine("graph", meta_file);
207+
url = "https://raw.githubusercontent.com/SciSharp/TensorFlow.NET/master/graph/" + meta_file;
208+
Web.Download(url, "graph", meta_file);
209+
203210
}
204211
}
205212
}

0 commit comments

Comments
 (0)