Skip to content

lpmi-13/telegramStressBot

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

telegramStressBot

This is going to be a proof of concept taking a sentence as input and sending back a predicted stress pattern

Using the #NAIL predictive model, there should be either 1 or 2 main sentence stresses (in an informal register), and a simplified version of the algorithm goes like so:

  1. find the first main stress by finding the final content word in the sentence.
  2. find the second main stress by starting at the beginning of the sentence and moving right until you find one of these (in this order). If you don't find one, move to the next thing to look for. If you find none of them, then there is only one main stress in the sentnece.
  • # cardinal number (eg, three), ordinal number (eg, third), order words (eg, next/last/previous/following), superlatives (most/Adjective-est/Adverb-est)
  • N Noun
  • A Adverb, which modifies a verb or a whole phrase
  • I Imperative verb (command form)
  • L Loud function word (any verb with negation, not, no)
  • 1st content word

By "Content word", the project is looking for nouns, adjectives, main verbs (not modals or aux verbs), adverbs, and Wh- question words

based on the work of Dickerson(2015): https://apling.engl.iastate.edu/alt-content/uploads/2015/05/PSLLT_6th_Proceedings_2014.pdf

About

chat bot that listens for users to send a sentence, and responds with the predicted sentence stress pattern

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages