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.1.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.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wordsim-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 71c19e97ee81fac49434f0103228215b72456e468aa05273673c65adfa7104ff
MD5 8ad8e904964090314c3d40e1b77a0988
BLAKE2b-256 d195dc2f7a9e345293044fa29351adb57bde87fd2479d0cd04fc8506b910abd0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wordsim-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1eef960e86f50bdf6d43f03b3968785268c1b98c07ee82f4b0d1d5a075b280f8
MD5 5e48d53e4d0ce2ed19d0641f10bd9f5a
BLAKE2b-256 e1dfd0228e6dcfbb758814d6c6977f919294b6869a62c184ee4acf961b31a0f2

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