Skip to content

Commit 0f67489

Browse files
committed
added auto download data for LSTM + CRF NER.
1 parent e615351 commit 0f67489

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

TensorFlow.NET.sln

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TensorFlowNET.Examples", "t
99
EndProject
1010
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TensorFlowNET.Core", "src\TensorFlowNET.Core\TensorFlowNET.Core.csproj", "{FD682AC0-7B2D-45D3-8B0D-C6D678B04144}"
1111
EndProject
12-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NumSharp.Core", "..\NumSharp\src\NumSharp.Core\NumSharp.Core.csproj", "{265765E1-C746-4241-AF2B-39B8045292D8}"
13-
EndProject
1412
Global
1513
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1614
Debug|Any CPU = Debug|Any CPU
@@ -29,10 +27,6 @@ Global
2927
{FD682AC0-7B2D-45D3-8B0D-C6D678B04144}.Debug|Any CPU.Build.0 = Debug|Any CPU
3028
{FD682AC0-7B2D-45D3-8B0D-C6D678B04144}.Release|Any CPU.ActiveCfg = Release|Any CPU
3129
{FD682AC0-7B2D-45D3-8B0D-C6D678B04144}.Release|Any CPU.Build.0 = Release|Any CPU
32-
{265765E1-C746-4241-AF2B-39B8045292D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
33-
{265765E1-C746-4241-AF2B-39B8045292D8}.Debug|Any CPU.Build.0 = Debug|Any CPU
34-
{265765E1-C746-4241-AF2B-39B8045292D8}.Release|Any CPU.ActiveCfg = Release|Any CPU
35-
{265765E1-C746-4241-AF2B-39B8045292D8}.Release|Any CPU.Build.0 = Release|Any CPU
3630
EndGlobalSection
3731
GlobalSection(SolutionProperties) = preSolution
3832
HideSolutionNode = FALSE

src/TensorFlowNET.Core/TensorFlowNET.Core.csproj

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Add Word2Vec example.</PackageReleaseNotes>
4949

5050
<ItemGroup>
5151
<PackageReference Include="Google.Protobuf" Version="3.7.0" />
52-
<PackageReference Include="NumSharp" Version="0.10.0" />
52+
<PackageReference Include="NumSharp" Version="0.10.1" />
5353
</ItemGroup>
5454

5555
<ItemGroup>
@@ -62,8 +62,4 @@ Add Word2Vec example.</PackageReleaseNotes>
6262
<Folder Include="Keras\Initializers\" />
6363
</ItemGroup>
6464

65-
<ItemGroup>
66-
<ProjectReference Include="..\..\..\NumSharp\src\NumSharp.Core\NumSharp.Core.csproj" />
67-
</ItemGroup>
68-
6965
</Project>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ public void PrepareData()
185185
hp.filepath_tags = Path.Combine(hp.data_root_dir, "tags.txt");
186186
hp.filepath_chars = Path.Combine(hp.data_root_dir, "chars.txt");
187187

188+
string url = "https://raw.githubusercontent.com/SciSharp/TensorFlow.NET/master/data/lstm_crf_ner.zip";
189+
Web.Download(url, hp.data_root_dir, "lstm_crf_ner.zip");
190+
Compress.UnZip(Path.Combine(hp.data_root_dir, "lstm_crf_ner.zip"), hp.data_root_dir);
191+
188192
// 1. vocabulary
189193
/*vocab_tags = load_vocab(hp.filepath_tags);
190194

0 commit comments

Comments
 (0)