Browse Source

LstmCrfNer example: added downloading of meta file

tags/v0.9
Meinrad Recheis 6 years ago
parent
commit
1da81389e9
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      test/TensorFlowNET.Examples/TextProcess/NER/LstmCrfNer.cs

+ 7
- 0
test/TensorFlowNET.Examples/TextProcess/NER/LstmCrfNer.cs View File

@@ -200,6 +200,13 @@ namespace TensorFlowNET.Examples.Text.NER
// 2. get processing functions that map str -> id
dev = new CoNLLDataset(hp.filepath_dev, hp);
train = new CoNLLDataset(hp.filepath_train, hp);

// download graph meta data
var meta_file = "lstm_crf_ner.meta";
var meta_path = Path.Combine("graph", meta_file);
url = "https://raw.githubusercontent.com/SciSharp/TensorFlow.NET/master/graph/" + meta_file;
Web.Download(url, "graph", meta_file);

}
}
}

Loading…
Cancel
Save