GithubHelp home page GithubHelp logo

sakan811 / stress-pattern-occurrence-in-english-words Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5.1 MB

This project is intended to provide English learners with data that allows them to make a data-driven guess when encountering words that they aren't sure where to stress

License: Apache License 2.0

Python 100.00%
data-analysis data-visualization english-learning english english-language language powerbi powerbi-report powerbi-visuals

stress-pattern-occurrence-in-english-words's Introduction

Stress Pattern Occurrence in English Words

Project Latest Update: 26 July 2024

The stress pattern was based on The CMU Pronouncing Dictionary.

The cmudict module from the NLTK library was used to extract the stress pattern from the dataset.

The English words dataset was based on the SubtlexUS dataset.

Disclaimers

According to what is mentioned on the CMU Pronouncing Dictionary website, "Stress is difficult to get right and people disagree about it."

Visualizations

Visualizations Latest Update: 6 May 2024

Power BI

Instagram

Facebook

Codebase Details

Test Status

CodeQL

Python application

To Run the Script to Get the English Words' Stress Pattern data

  • Execute main.py
    • Data is loaded to a local SQLite database automatically.
      • A local SQLite database is created automatically if not exist in the given path.
      • You can change the path by adjusting this variable:
        db = 'eng_stress_pattern.db'
        

stress_pattern_finder Package

eng_stress_pattern_finder.py

  • Find the stress pattern of the English words with the given dataset.

stress_pattern_etl Package

extract_data.py

  • Extract data from SubtlexUS dataset.

transform_data.py

  • Transform data to find a syllable count and stress pattern of each English word.
    • Words that aren't in the dictionary will be filtered out.

load_to_sqlite.py

  • Load data to SQLite database tables.

Database Details

Tables:

  • StressPattern
    • Store syllable count, stress pattern, and primary and secondary stress position of each word

Sources

The CMU Pronouncing Dictionary: http://www.speech.cs.cmu.edu/cgi-bin/cmudict
“SubtlexUS” dataset: http://www.lexique.org/?page_id=241

stress-pattern-occurrence-in-english-words's People

Contributors

sakan811 avatar

Watchers

 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.