The next word predictor is an exciting feature that helps you type faster on your mobile phone. It predicts the next word in the context you want to type. It is a very useful tool for people who type often and make mistakes while typing. It can be leveraged for auto-suggestion features in messenger and search engine apps.
The next word predictor makes it easy for readers to understand what exactly you are trying for them to read about.
- Next word predictor is a very useful feature as it increases the readability of your content as well as makes it more understandable for readers.
- Saves time by reducing the number of typos and grammatical errors in your content.
- Modify source code to customize as per your requirements.
Deployment Information
The next word predictor created using this kit is added in this section. The entire solution is available as a package to download from the source code repository.
For Windows OS,
- Download, extract and double-click the kit installer file to install the kit. Do ensure to extract the zip file before running it.
- The installation may take from 2 to 10 minutes based on bandwidth.
- After successful installation of the kit, press 'Y' to run the kit and execute cells in the notebook.
- To run the kit manually, press 'N' and locate the zip file 'next-word-prediction.zip'
- Extract the zip file and navigate to the directory 'next-word-prediction-main'
- Open the command prompt in the extracted directory 'next-word-prediction-main' and run the command 'jupyter notebook'
For other Operating System,
- Install python
- Download the repository
- Extract the zip file and navigate to the directory 'next-word-prediction-main'
- Open the terminal in the extracted directory 'next-word-prediction-main'
- Install dependencies by executing the command 'pip install -r requirements.txt'
- Run the command ‘jupyter notebook’ and select the notebook ‘Next Word Predictor.ipynb’ on the browser window.
Click on the button below to download the solution and follow the deployment instructions to begin set-up. This 1-click kit has all the required dependencies and resources you may need to build your Next Word Predictor App.
Instructions to Run
Follow the below instructions to run the solution.
- Locate and open the 'Next Word Predictor.ipynb' notebook from the Jupyter Notebook browser window.
- Execute cells in the notebook by selecting Cell --> Run All from the Menu bar.
- Once all the cells of the notebook are executed, the last interactive cell (Customisation) will be active, there we can give the input data or we can give the input text in the variable 'text_seq' under the variable section.
Input
text_seq = "I'm gonna make him an offer he can't"
Output
['refuse', 'resist', 'take', 'deny', 'get']
Troubleshooting
- If you encounter any error related to MS Visual C++, please install MS Visual Build tools
- While running batch file, if you encounter Windows protection alert, select More info --> Run anyway.
- During kit installer, if you encounter Windows security alert, click Allow.
- If you encounter Memory Error, check if the available memory is sufficient and it is proportion to the size of the data being used. For our dataset, the minimum required memory is 8GB.
If your computer doesn't support standard commands from windows 10, you can follow the instructions below to finish the kit installation.
- Install python
- Download the repository
- Extract the zip file and navigate to the directory 'next-word-prediction-main'
- Open terminal in the extracted directory 'next-word-prediction-main'
- Install dependencies by executing the command 'pip install -r requirements.txt'
- Run the command ‘jupyter notebook’ and select the notebook ‘Next Word Predictor.ipynb’ on the browser window.
For a detailed tutorial on installing & executing the solution as well as learning resources including training & certification opportunities, please visit the OpenWeaver Community
Development Environment
VSCode and Jupyter Notebook are used for development and debugging. Jupyter Notebook is a web-based interactive environment often used for experiments, whereas VSCode is used to get a typical experience of IDE for developers. Jupyter Notebook is used for our development.
jupyterby jupyter
Jupyter metapackage for installation, docs and chat
jupyterby jupyter
Python 14404 Version:Current License: Permissive (BSD-3-Clause)
Exploratory Data Analysis
For extensive analysis and exploration of data, and to deal with arrays, these libraries are used. They are also used for performing scientific computation and data manipulation.
numpyby numpy
The fundamental package for scientific computing with Python.
numpyby numpy
Python 23755 Version:v1.25.0rc1 License: Permissive (BSD-3-Clause)
pandasby pandas-dev
Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
pandasby pandas-dev
Python 38689 Version:v2.0.2 License: Permissive (BSD-3-Clause)
Text Mining
Libraries in this group are used for analysis and processing of unstructured natural language.
spaCyby explosion
💫 Industrial-strength Natural Language Processing (NLP) in Python
spaCyby explosion
Python 26383 Version:v3.2.6 License: Permissive (MIT)
Machine Learning
The library offers state-of-the-art pre-trained models for Natural Language Processing (NLP).
transformersby huggingface
🤗 Transformers: State-of-the-art Machine Learning for Pytorch, TensorFlow, and JAX.
transformersby huggingface
Python 104111 Version:v4.30.2 License: Permissive (Apache-2.0)
Kit Solution Source
next-word-predictionby kandi1clickkits
Generative Pretrained Transformer 2 (GPT-2) for Language Modeling using the PyTorch-Transformers library.
next-word-predictionby kandi1clickkits
Jupyter Notebook 0 Version:v1.0.0 License: Permissive (MIT)
Support
If you need help using this kit, you may reach us at the OpenWeaver Community.