Comments (3)
Dear Sir:
I am also wondering, is there a way to just focus on a subset of the symspell.words for calculating the distance? Many Thanks
Regards
from symspellpy.
I am just wondering is there a way to empty the .words dict quickly in an inexpensive way after loading dictionary.
I am facing a case where I need to constantly update the dictionary of the symspell, but it is very slow for each initialization
The words and other related data are found within these member variables and are implemented as dictionary. So I think you can probably just use the Python built-in dictionary clear()
function.
I am also wondering, is there a way to just focus on a subset of the symspell.words for calculating the distance?
You'll have to write your custom functions/methods for this. You can perhaps try to load a subset of the dictionary words before running lookup methods.
To make switching of different dictionary "subset" quicker, I think you can save the words
and related member variables as pickles and then just load them instead of having to parse them again. You can refer to the _load_pickle_stream()
method to see which member variables should be saved and loaded
from symspellpy.
Many Thanks!!!
from symspellpy.
Related Issues (20)
- ignore_term_with_digits doesn't work HOT 2
- replaced_words is not correct HOT 4
- Correction doesn't prioritize bigram. HOT 3
- Predicts garbage for Bengali input HOT 7
- wrong word segmentation result HOT 1
- First line of the text file reads wrong HOT 4
- edit distance issue HOT 1
- Substring search
- error if i use spell checker to my dataset HOT 4
- Custom Edit Distance HOT 2
- Using a custom dictionary with the desired correction HOT 1
- the frequency in the loaded dictionary is absolute, not relative
- Incompatible architecture on macOS
- Keep spacing in between words and not split on white space HOT 1
- is_acronym only detects numbers if match_any_term_with_digits HOT 1
- Correction not using bi-grams
- Bigrams omitted from save and load pickle methods HOT 5
- Does SymSpell has spell checker ? HOT 2
- Error when pip install on MacOS HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from symspellpy.