How to create a custom list of words for predictive text - text

I am thinking about making an app to do with electrical equipment and I would like the app to recognise the name of tools as you write to save you time (predictive text). How would I go about creating a custom list of words the app recognises. Can anyone please point me in the right direction. I have looked around and not found much information on the subject. I am currently using objective c although learning swift so any of those languages will do. Many thanks.

What you want is not predictive text but rather autocomplete.
See this post, there's an answer by Jano with a link to code that seems to do what you need.

Related

I need advice on aggregating data in a spreadsheet to be analyzed with Python

I want to input the past couple of years of my high school soccer team's stat books into a spreadsheet so I can run my own analysis on it using Python in Google Colab or a Jupyter Notebook. The problem I have right now is that I don't know what the best way of aggregating it in Excel is. I have a record of basic stats such as lineups, shots, saves, goals, assists, etc. for each individual game (standard box score stuff you'd expect from a high school team who uses a JV player to keep stats). But what would be the best way to input all of this in a way that will make it easy for me to analyze? Obviously I can't make a separate Excel tab for each individual game (there are hundreds of games), and I don't think logging them all into the same tab would be the best thing to do either, but I don't what I should do in order to solve this problem. This seems like a simple problem, and I'm probably missing a really obvious solution, but if anyone could give me some advice, I'd be very grateful. Does anyone have any experience doing anything similar? Thanks for taking the time to help.
I haven't tried anything yet because I wanted to figure out a good method before I put a bunch of time into this.

define pronunciation starting time for each word in script

I have a text script that is used to create podcasts. So the words in podcast audio are exactly the same as in my text. Now what I want to have is the following:
Word in text | Pronounciation started at
Hello 0:0:0.000
my 0:0:1.125
friends 0:0:2.750
Is that possible to do at all?
Thanks in advance!
One of the key words you could start with to approach the complexity of the problem is "forced alignment". This site also covers questions regarding this topic e.g. here which leads you to questions and answers concerning HTK (the Hidden Markov Model Toolkit) via the releated threads.
You can find a more hands-on style description of how to use forced alignment in automated audio segmentation here.
So the answer is: yes, it is possible, but it is algorithmically very complex and even in its best implementations it is not error-free.
PS.: I found you a really simple tool

3 Google docs combined into 1?

I have a little project I am working on, and would like to know more.
Is it possible to Have 3 google docs (A,B,C), and have them updated into 1 Master Google doc page?
For example, if I were to input data on Document A, I would be able to see the information automatically listed on the Master document? Same with B, and C.
I am willing to learn/work on this, just would like to know if its even possible and hope that you can help me or point me in the right direciton.
Thanks!
Due to this link it seems merging is not possible for now. Copy-Paste is a way to go but that is not what you're looking for.
by the way, Google Document has been renamed to Google Drive lately. And this is a work in progress. has lots of limitations. It's not a solution to everything. The most useful feature of it is real-time editing.
AFAIK LaTeX can do that with if you like a new challenge.

simultaneous text editing

I'm trying to program a Webpage, which allows to edit a text document simultaneously.
To program something like a Chat in Node.js is not very difficult, but working on the same text makes it kinda tricky.
I thought about sending the char position and the changes characters, but if someone types something previous to the change, the change would be placed on the wrong position.
What's the best way to exchange Modifications between my clients?
You should use Socket.io to have make your Real-Time application.
I just founded a nice blog article which speaks about real time edition, see here.
It's also providing a link to the github project and to an open source online editor project.
Take a look and try to understand how they do stuff like this, good luck !
Two people cannot be manipulating the same object at the same time from a different place. You basically have two choices.
1. Let them take turns with the object
2. duplicate it if they both want it, but that doesnt sound like it would end well

How does OCR work? and how to add OCR to an alphabet

I have an alphabet which has not been tackled before, so when scanned, there's no way to detect the letters for recognition with OCR. I'm trying to program OCR for it, but don't have much experience in this. I'd appreciate some hints as to where to get started, and how such a system is normally implemented.
Take a look at this page--it describes the training process for an open source OCR engine.
The free Stanford Online Machine Learning class has a great set of lessons on Photo OCR in Part XVIII.
This blog post has a brief description of the example taught in the class.
There are some excellent resources at google books. Likewise, if you search for Optical Character Recognition on Amazon, there are some pretty up-to-date books that look to be fairly thick and intellectually challenging :D heh
btw - I'm well aware this post has some age, but you never know when some other person might stumble across this and find just what they need. And if this even has the chance of helping out, then so be it. OCR is such a strange subject, that there's not too much out there that can really really answer the deep-machine ended questions. Especially if you're going to attempt to write your own library. :P

Resources