-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- TargetFrameworks changed from `netstandard2.0;net461;net47;netcoreapp3.0` to `netstandard2.0;net9.0`. - PackageReferences updated. - In SymSpell.Test all Assert.AreEqual changed to Assert.That
- Loading branch information
Showing
10 changed files
with
103 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,16 +20,16 @@ If you like SymSpell, try [**SeekStorm**](https://github.com/SeekStorm/SeekStorm | |
<br> | ||
|
||
``` | ||
Copyright (c) 2022 Wolf Garbe | ||
Version: 6.7.2 | ||
Copyright (c) 2025 Wolf Garbe | ||
Version: 6.7.3 | ||
Author: Wolf Garbe <[email protected]> | ||
Maintainer: Wolf Garbe <[email protected]> | ||
URL: https://github.com/wolfgarbe/symspell | ||
Description: https://seekstorm.com/blog/1000x-spelling-correction/ | ||
MIT License | ||
Copyright (c) 2022 Wolf Garbe | ||
Copyright (c) 2025 Wolf Garbe | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated | ||
documentation files (the "Software"), to deal in the Software without restriction, including without limitation | ||
|
@@ -489,6 +489,13 @@ https://www.sciencedirect.com/science/article/pii/S2215016124001225 | |
2. Option to preserve case (upper/lower case) of input term. | ||
3. Open source the code for creating custom frequency dictionaries in any language and size as intersection between Google Books Ngram data (Provides representative word frequencies) and SCOWL Spell Checker Oriented Word Lists (Ensures genuine English vocabulary). | ||
|
||
#### Changes in v6.7.3 | ||
|
||
- TargetFrameworks changed from `netstandard2.0;net461;net47;netcoreapp3.0` to `netstandard2.0;net9.0`. | ||
- PackageReferences updated. | ||
- In SymSpell.Test all Assert.AreEqual changed to Assert.That | ||
- Incorporates PR #126 that fixes null reference exception in CommitStaged (#139). | ||
|
||
#### Changes in v6.7.2 | ||
|
||
1. Exception fixed in WordSegmentation | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>netcoreapp3.0</TargetFramework> | ||
<TargetFramework>net9.0</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\SymSpell\SymSpell.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Update="Microsoft.Net.Compilers.Toolset" Version="4.12.0" /> | ||
<PackageReference Update="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>net461;netcoreapp3.0;</TargetFrameworks> | ||
<LangVersion>preview</LangVersion> | ||
<TargetFramework>net9.0</TargetFramework> | ||
<RootNamespace>symspellTest</RootNamespace> | ||
<AssemblyName>symspellTest</AssemblyName> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" /> | ||
<PackageReference Include="NUnit" Version="3.12.0" /> | ||
<PackageReference Include="NUnit3TestAdapter" Version="3.15.1" /> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" /> | ||
<PackageReference Include="NUnit" Version="4.3.2" /> | ||
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\SymSpell\SymSpell.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Update="Microsoft.Net.Compilers.Toolset" Version="4.12.0" /> | ||
<PackageReference Update="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,15 +11,15 @@ | |
// 2. mistakenly omitted space between two correct words led to one incorrect combined term | ||
// 3. multiple independent input terms with/without spelling errors | ||
|
||
// Copyright (C) 2022 Wolf Garbe | ||
// Version: 6.7.2 | ||
// Copyright (C) 2025 Wolf Garbe | ||
// Version: 6.7.3 | ||
// Author: Wolf Garbe [email protected] | ||
// Maintainer: Wolf Garbe [email protected] | ||
// URL: https://github.com/wolfgarbe/symspell | ||
// Description: https://seekstorm.com/blog/1000x-spelling-correction/ | ||
// | ||
// MIT License | ||
// Copyright (c) 2022 Wolf Garbe | ||
// Copyright (c) 2025 Wolf Garbe | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated | ||
// documentation files (the "Software"), to deal in the Software without restriction, including without limitation | ||
// the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, | ||
|
@@ -224,9 +224,9 @@ public bool CreateDictionaryEntry(string key, Int64 count, SuggestionStage stagi | |
//even if the same term existed before in the dictionary as an edit from another word | ||
if (key.Length > maxDictionaryWordLength) maxDictionaryWordLength = key.Length; | ||
|
||
if (deletes == null) this.deletes = new Dictionary<int, string[]>(initialCapacity); //initialisierung | ||
if (deletes == null) deletes = new Dictionary<int, string[]>(initialCapacity); //initialisierung | ||
|
||
//create deletes | ||
//create deletes | ||
var edits = EditsPrefix(key); | ||
// if not staging suggestions, put directly into main data structure | ||
if (staging != null) | ||
|
@@ -353,7 +353,6 @@ public bool LoadDictionary(Stream corpusStream, int termIndex, int countIndex, c | |
} | ||
} | ||
} | ||
if (this.deletes == null) this.deletes = new Dictionary<int, string[]>(staging.DeleteCount); | ||
CommitStaged(staging); | ||
return true; | ||
} | ||
|
@@ -390,7 +389,6 @@ public bool CreateDictionary(Stream corpusStream) | |
} | ||
} | ||
} | ||
if (this.deletes == null) this.deletes = new Dictionary<int, string[]>(staging.DeleteCount); | ||
CommitStaged(staging); | ||
return true; | ||
} | ||
|
@@ -410,6 +408,7 @@ public void PurgeBelowThresholdWords() | |
/// <param name="staging">The SuggestionStage object storing the staged data.</param> | ||
public void CommitStaged(SuggestionStage staging) | ||
{ | ||
if (deletes == null) deletes = new Dictionary<int, string[]>(staging.DeleteCount); | ||
staging.CommitTo(deletes); | ||
} | ||
|
||
|
Oops, something went wrong.