Skip to main content

This is simply a word similarity model that matches the desired word to the most similar word in a reference list of words provided by the user.

Project description

wordsim

This is the source code of a smart model that finds the similarity between a given word and a reference list of words. Then it returns the word that has the most similarity.

How to use:

from wordsim import * # import the module

lst = ['Red', 'Green', 'Blue'] # define a list of strings

model = wordSim() # create an instance of the class 'wordSim'

model.train(lst) # train your model using your list of strings

results = model.predict('blu') # commence prediction

print(results) # print results:

print(model.get_best()) # or print it that way

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wordsim-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wordsim-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file wordsim-0.1.0.tar.gz.

File metadata

  • Download URL: wordsim-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for wordsim-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9bd66b72228f033269a0172c43d8ae9282e553c042939635bcf5804d1a43de61
MD5 9f141f2d1643877b22b068bfad197e7b
BLAKE2b-256 811a53c0186ed2467e3b3b5e06596f9d2129ccc3d2559aa8decd0e1cb1016361

See more details on using hashes here.

File details

Details for the file wordsim-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: wordsim-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for wordsim-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2d59c50db072a8800ad4aab12c1e8a0a68469a0dc34a47a9a6a1725326c3dc01
MD5 56a154f5087c069d7f0f1e23bd04718c
BLAKE2b-256 1fdfb25846dba922010330c762275d2cc851765320e902236a5cc353039620d9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page