Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.23 KB

README.md

File metadata and controls

27 lines (20 loc) · 1.23 KB

corpus_to_ngram

Input a corpus and get ngram relative frequency visualizations. This is the first stage, so right now it is only compatible with the two CSV files in the repository. In the future, there will be features to process other corpora. The current CSV files are from the Providence Corpus.

     https://sla.talkbank.org/TBB/phon/Eng-NA/Providence

How to use:

  1. Download app.py and the two CSVs in the same folder.

  2. Ensure you have the necessary python packages (see requirements.txt)

  3. Open terminal and navigate to folder containing app.py and CSV files

  4. Run this command:

    shiny run app.py

    Your terminal should display something like this:

     INFO:     Started server process [22574]
     INFO:     Waiting for application startup.
     INFO:     Application startup complete.
     INFO:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
     INFO:     127.0.0.1:53621 - "GET / HTTP/1.1" 200 OK
     INFO:     ('127.0.0.1', 53623) - "WebSocket /websocket/" [accepted]
     INFO:     connection open
    
  5. Copy and past the URl into your browser

Note: Ignore the first tab, it is a placeholder for later changes.