Spell-Corrector:借助TensorFlow和JS制作的拼写校正器

  • l1_407869
    了解作者
  • 104.9MB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-10 13:15
    上传日期
咒语修正 在Tensorflow的帮助下制作的一个简单的拼写校正器。 该项目的目的是建立一个模型,该模型可以将带有拼写错误的句子或段落作为输入,并输出校正后的句子或段落。 我们将用于此项目的数据将是出版的25本书。 要求: 确保使用python 3.3+版本,并且已在PC上安装了node。 pip3 install -r requirements.txt 如何运行: 在终端中运行node app 。 然后在浏览器中打开http://localhost:3000/ 。 它是如何工作的? 当您单击Submit Button时,输入的单词首先存储在input.txt文件中。 然后,它在后台运行pyhton脚本。 当脚本执行完成时,它将在终端中显示输入单词和响应单词。 然后将响应词存储在output.txt文件中。 通过在浏览器中单击“输出”按钮,您可以查看结果和更改。 在行动
Spell-Corrector-master.zip
内容介绍
# Spell-Corrector [<img src="https://www.tensorflow.org/images/tf_logo_transp.png" align="right" width="100" height ="100">](#) [<img src="https://www.python.org/static/img/python-logo.png" align="right" width="200" height="100">](#) [![forthebadge](http://forthebadge.com/images/badges/made-with-python.svg)](http://forthebadge.com) [![forthebadge](http://forthebadge.com/images/badges/uses-js.svg)](http://forthebadge.com) [![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](http://forthebadge.com) A simple spelling corrector made with the help of Tensorflow. The objective of this project is to build a model that can take a sentence or paragraph with spelling mistakes as input, and output corrected sentence or paragraph. The data that we will use for this project will be twenty five popular books from [Project Gutenberg](http://www.gutenberg.org/). ## Requirements: Make sure to use python version 3.3+ and has installed node on your PC. ``` pip3 install -r requirements.txt ``` ## How to run: 1. Run ```node app``` in the terminal. 2. Then open ```http://localhost:3000/``` in your browser. ## How does it work? 1. When You click on Submit Button, The input words are first stored in input.txt file. 2. Then it runs a pyhton script in the background. 3. When the excecution of the script comlpletes it displays the input words and response words in the terminal. And then the response words are stored in output.txt file. 4. By clicking on the Output Button in your browser you can view the results and the changes. ## In action: ![Demo](https://github.com/harshendrashah/Spell-Corrector/blob/master/clean_data/In-action.gif)
评论
    相关推荐