GithubHelp home page GithubHelp logo

algo_hw1's Introduction

ALGO_HW1

環境與需求:

  • 執行語言: python3
  • 程式檔: algorithm_HW1.py algorithm_HW1_2.py
  • 安裝相關 api: nltk

步驟:

  1. 開啟終端機(windows 要用系統管理員身分開啟)
  2. 輸入 pip install nltk
  3. 輸入 python
  4. 輸入 import nltk
  5. 輸入 nltk.download()
  6. 出現 nltk 的 downloader 後,選到 tab Models
  7. 下載 identifier "punkt"
  8. 完成

執行:

  1. 開啟終端機 cd 到 程式碼的資料夾下
  2. 輸入 python 檔案名.py python algorithm_HW1.py python algorithm_HW1_2.py
  3. 終端機會顯示結果,及儲存在 OUTPUT-A.txtOUTPUT-B.txt

程式內:

  1. 輸入要執行的文件的號碼
1: Crime_and_Punishment_Fyodor_Dostoyevsky-Total words 34004-Unique words 3331.txt  
2: Forrest_Gump-John_Escott-Total words 9095-Unique words 1012.txt  
4: The_Old_Man_and_the_Sea-Ernest_Hemingway-Total words 12759-Unique words 1203.txt  
5: Spider-man-Stan_Lee-Total words 4342-Unique words 514.txt  

algo_hw1's People

Contributors

ianctw16 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.