pydatablog / simstring.jl Goto Github PK
View Code? Open in Web Editor NEWNative Julia implementation of CPMerge (SimString) algorithm
License: MIT License
Native Julia implementation of CPMerge (SimString) algorithm
License: MIT License
Special unicode characters breaks the current n-grams feature generation as it uses array indexing as replicated below:
using SimString
db = DictDB(CharacterNGrams(2, " "))
push!(db, "„orosz állami részvénytársaság")
Output:
StringIndexError: invalid index [3], valid nearby indices [2]=>'„', [5]=>'o'
string_index_err(::String, ::Int64)@string.jl:12
getindex@string.jl:263[inlined]
(::SimString.var"#13#14"{String, Int64})(::Int64)@features.jl:25
iterate@generator.jl:47[inlined]
collect_to!@array.jl:782[inlined]
collect_to_with_first!@array.jl:760[inlined]
_collect(::UnitRange{Int64}, ::Base.Generator{UnitRange{Int64}, SimString.var"#13#14"{String, Int64}}, ::Base.EltypeUnknown, ::Base.HasShape{1})@array.jl:754
collect_similar@array.jl:653[inlined]
map@abstractarray.jl:2849[inlined]
init_ngrams@features.jl:24[inlined]
n_grams@features.jl:44[inlined]
extract_features(::SimString.CharacterNGrams{Int64, String}, ::String)@features.jl:70
push!(::SimString.DictDB{SimString.CharacterNGrams{Int64, String}, String, DataStructures.DefaultDict{Int64, Set{String}, SimString.var"#1#4"}, DataStructures.DefaultDict{Int64, DataStructures.DefaultOrderedDict{Tuple{String, Int64}, Set{String}}, SimString.var"#2#5"}, DataStructures.DefaultDict{Int64, DataStructures.DefaultDict{Tuple{String, Int64}, Set{String}}, SimString.var"#3#6"}}, ::String)@features.jl:124
top-level scope
This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml
to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix
on this issue.
I'll open a PR within a few hours, please be patient!
Add Japanese language support via Mecab
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.