Skip to content

Commit

Permalink
Removed Float16 from tests due to rounding problems; updated NEWS.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zgornel committed Jun 10, 2022
1 parent e59b35f commit 8e36172
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
## StringAnalysis Release Notes


v0.4.2
------
- Bugfixes

v0.4.1
------
- New snowball stemmer

v0.4.0
------
- A vector of strings is equivalent to a corpus for DTM, inverse index, lexicon
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "StringAnalysis"
uuid = "b66b7d2f-f536-51df-9f97-4dfb9d27c005"
authors = ["Corneliu Cofaru <cornel@oxoaresearch.com>"]
version = "0.4.1"
version = "0.4.2"

[deps]
AutoHashEquals = "15f4f7f2-30c1-5605-9d31-71845cf9641f"
Expand Down
2 changes: 1 addition & 1 deletion test/coom.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
td = TokenDocument{String}(doc)
nd = NGramDocument{String}(doc)
crps = Corpus([sd, td])
T = Float16
T = Float32
# Results for window = 5, all terms in document used
expected_result = [ # for window == 5
0.0 2.0 1.0 2/3 0.5 0.4 0.0 0.0
Expand Down
2 changes: 1 addition & 1 deletion test/rp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
query = StringDocument("Apples and an exotic fruit.")
for k in [0, 1, 3]
for stats in [:count, :tf, :tfidf, :bm25]
for T in [Float16, Float32, Float64]
for T in [Float32, Float64]
dtm = DocumentTermMatrix{T}(crps, lex_keys, ngram_complexity=ngram_complexity)
model = rp(dtm, k=k, stats=stats, ngram_complexity=ngram_complexity)
@test model isa RPModel{String, T, SparseMatrixCSC{T,Int}, Int}
Expand Down

0 comments on commit 8e36172

Please sign in to comment.