Skip to content

Commit 8e36172

Browse files
committed
Removed Float16 from tests due to rounding problems; updated NEWS.md
1 parent e59b35f commit 8e36172

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

NEWS.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
## StringAnalysis Release Notes
22

3+
4+
v0.4.2
5+
------
6+
- Bugfixes
7+
8+
v0.4.1
9+
------
10+
- New snowball stemmer
11+
312
v0.4.0
413
------
514
- A vector of strings is equivalent to a corpus for DTM, inverse index, lexicon

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "StringAnalysis"
22
uuid = "b66b7d2f-f536-51df-9f97-4dfb9d27c005"
33
authors = ["Corneliu Cofaru <[email protected]>"]
4-
version = "0.4.1"
4+
version = "0.4.2"
55

66
[deps]
77
AutoHashEquals = "15f4f7f2-30c1-5605-9d31-71845cf9641f"

test/coom.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
td = TokenDocument{String}(doc)
66
nd = NGramDocument{String}(doc)
77
crps = Corpus([sd, td])
8-
T = Float16
8+
T = Float32
99
# Results for window = 5, all terms in document used
1010
expected_result = [ # for window == 5
1111
0.0 2.0 1.0 2/3 0.5 0.4 0.0 0.0

test/rp.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
query = StringDocument("Apples and an exotic fruit.")
1818
for k in [0, 1, 3]
1919
for stats in [:count, :tf, :tfidf, :bm25]
20-
for T in [Float16, Float32, Float64]
20+
for T in [Float32, Float64]
2121
dtm = DocumentTermMatrix{T}(crps, lex_keys, ngram_complexity=ngram_complexity)
2222
model = rp(dtm, k=k, stats=stats, ngram_complexity=ngram_complexity)
2323
@test model isa RPModel{String, T, SparseMatrixCSC{T,Int}, Int}

0 commit comments

Comments
 (0)