phonetics

How can I get this switch statement to work using a scanner?

回眸只為那壹抹淺笑 提交于 2019-12-04 23:10:38
问题 I'm trying to write a program that will switch any letter of the alphabet (upper or lower cases) into the Phontic alphabet. For example, If I enter "A" or "a" my program will give me (change it to) "Alpha". I've done so much research on this and switch statements but I keep getting stuck. I've realized that I can't use 'char' in a scanner. However, when I change 'char' into a 'String' my switch statement messes up (specifically the toUpperCase in my code gets underlined. I can't see my

How can I get this switch statement to work using a scanner?

无人久伴 提交于 2019-12-03 14:47:38
I'm trying to write a program that will switch any letter of the alphabet (upper or lower cases) into the Phontic alphabet. For example, If I enter "A" or "a" my program will give me (change it to) "Alpha". I've done so much research on this and switch statements but I keep getting stuck. I've realized that I can't use 'char' in a scanner. However, when I change 'char' into a 'String' my switch statement messes up (specifically the toUpperCase in my code gets underlined. I can't see my mistake. Here's what I've done so far: import java.util.Scanner; public class PhoneticTranslate { public

Finding pronunciation correctness

坚强是说给别人听的谎言 提交于 2019-12-03 08:51:49
问题 I need to identify the "quality" of the user's pronunciation with the help of Microsoft speech SDK ( System.Speech.Recognition ). I am using MS Speech Engine - US, so what I actually need is to find out how close the speaker's voice is to the "North American" accent. One way of doing this is by checking how close the user's voice is to the US English phonetic pronunciation. As mentioned in MSDN, it seems like this process is done inside the speech SDK by it self, so I need to get that out.

Where can I obtain an English dictionary with structured data? [closed]

怎甘沉沦 提交于 2019-11-29 19:20:25
I would like to download an English dictionary -- not just a word list -- in a structured format such as TXT, XML, or SQL. Specifically, I need phonetic pronunciation and parts of speech (definition is not required). Surprisingly, I can't find this online anywhere. Wiktionary is available for download , but it is only the MediaWiki articles themselves. Crawling all articles and extracting the phonetics and parts of speech would be a huge exercise. Is this available anywhere? I don't mind paying. Edit: a few people have asked what I would like to do. My immediate need is just curiosity, for

how to check if a string looks randomized, or human generated and pronouncable?

佐手、 提交于 2019-11-28 17:10:23
For the purpose of identifying [possible] bot-generated usernames. Suppose you have a username like "bilbomoothof" .. it may be nonsense, but it still contains pronouncable sounds and so appears human-generated. I accept that it could have been randomly generated from a dictionary of syllables, or word parts, but let's assume for a moment that the bot in question is a bit rubbish. Suppose you have a username like "sdfgbhm342r3f", to a human this is clearly a random string. But can this be identified programatically? Are there any algorithms available (similar to Soundex, etc..) that can

Ellipse containing percentage of given points in R

安稳与你 提交于 2019-11-27 13:32:19
问题 I'm drawing F1/F2 vowel graph (an example is here). Each vowel has several points/values, and I'd like to draw an ellipse around the points, so that: ellipse covers at least 80% of points (ie. in the picture above "i" has several values, but they are contained within the ellipse). is positioned in the direction on min/max values. I may be complicating the stuff, but trigonometry and maths are Greek to me. Below is what I've tried. Ellipsoidhull() Ellipsoidhull() is in the package package

how to check if a string looks randomized, or human generated and pronouncable?

六眼飞鱼酱① 提交于 2019-11-27 10:14:44
问题 For the purpose of identifying [possible] bot-generated usernames. Suppose you have a username like "bilbomoothof" .. it may be nonsense, but it still contains pronouncable sounds and so appears human-generated. I accept that it could have been randomly generated from a dictionary of syllables, or word parts, but let's assume for a moment that the bot in question is a bit rubbish. Suppose you have a username like "sdfgbhm342r3f", to a human this is clearly a random string. But can this be

How can I measure the similarity between 2 strings? [closed]

…衆ロ難τιáo~ 提交于 2019-11-27 06:24:44
Given two strings text1 and text2 public SOMEUSABLERETURNTYPE Compare(string text1, string text2) { // DO SOMETHING HERE TO COMPARE } Examples: First String: StackOverflow Second String: StaqOverflow Return: Similarity is 91% The return can be in % or something like that. First String: The simple text test Second String: The complex text test Return: The values can be considered equal Any ideas? What is the best way to do this? There are various different ways of doing this. Have a look at the Wikipedia "String similarity measures" page for links to other pages with algorithms. I don't think

How can I measure the similarity between 2 strings? [closed]

孤者浪人 提交于 2019-11-26 12:53:51
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . Given two strings text1 and text2 public SOMEUSABLERETURNTYPE Compare(string text1, string text2) { // DO SOMETHING HERE TO COMPARE } Examples: First String: StackOverflow Second String: StaqOverflow Return: Similarity is 91% The return can be in % or something like that. First