Automatically add sentences to Anki with a little program

Index » Learning resources

  • 1
 
Reply #1 - 2011 May 06, 7:01 am
foodcubes Member
From: USA Registered: 2010-07-18 Posts: 90

If anyone wants an automated way to mine chosen sentences from text, let me know and I can try to make a little program for you using autohotkey.  The way it would work is if you highlight the sentence you like and then hit ctrl+a (or whatever button combo you want) it will then copy the sentence and put it into anki for you.  I only mine sentences from subs2srs so I don't need it, but if it's useful for others then let me know and I can make it.

Or if you have other repetitive tasks with Anki, Kanji, or anything else, maybe I can make something for those, too.

Reply #2 - 2011 May 06, 7:40 am
jettyke Member
From: 九州 Registered: 2008-04-07 Posts: 1194

Wow nice.

I'm gonna keep it in mind if I will come up with any great ideas.

Reply #3 - 2011 May 06, 9:02 am
KMDES Member
From: Canada Registered: 2009-09-28 Posts: 306

+1 for great idea. big_smile

Would you also be able to make an adding and timing system for my declaritive learning system too? yikes

Advertising (register and sign in to hide this)
JapanesePod101 Sponsor
 
Reply #4 - 2011 May 06, 3:22 pm
ta12121 Member
From: Canada Registered: 2009-06-02 Posts: 3190

This would make everyone's lives easier. I recently revamped my sentence deck and I tried man-picking sentences/putting monolingual looks-ups. It seriously took so long. I've been trying to find ways of speeding up this process.

But so far, the format that I use is:
Kanji expression (Front of the card)
Reading?(Answer card)
Meaning(small translation in the answer card)

The readings contain furigana

Last edited by ta12121 (2011 May 06, 3:22 pm)

Reply #5 - 2011 May 06, 7:31 pm
chochajin Member
From: Japan Registered: 2008-07-13 Posts: 520 Website

That would be awesome! big_smile

Reply #6 - 2011 May 07, 2:04 am
rachels Member
From: Australia Registered: 2008-06-06 Posts: 110

Foodcubes, it is a very kind and generous offer. I am not quite yet in the habit of using Yomichan, so I am not sure, but can that be set up to automate the adding of sentences to an anki deck? I guess it doesn't do translation though.
But that aside - I have used GoogleTTS mp3 mass  generator (shared plug-in) to make English sound files for a spelling deck, and it works quite satisfactorily, but when I turn it to Japanese I don't like the sound quality.  Most of the sentences in my anki deck have sound, but for the stragglers, I would really like to be able to use something like GoogleTTS but perhaps incorporating the basics of that plug-in with the audio from
http://imtranslator.net/translate-and-s … /japanese/
which sounds a bit better to me.
I don't know how possible or difficult that would be. What do you think?

Or perhaps it would be more similar to the audio download plug-in ??? It could also be used to make sound-files for those words that are not available through audio download.

Last edited by rachels (2011 May 07, 2:23 am)

Reply #7 - 2011 May 07, 8:36 am
foodcubes Member
From: USA Registered: 2010-07-18 Posts: 90

I'm looking at using the program called "Autohotkey".  This would allow me to record a series of keyboard and mouse inputs to perform a repetitive task.

I'm playing around with it right now.  What I'm trying to do; if you highlight text it will then do the rest of the work for you:  Copy the text and then open the anki "add card" dialogue.  It will then paste the copied text into the new card and then close the window so you can continue reading.  This is a really basic starting point, but it's very flexible so you can get it to do a lot more.


I think that the big benefit of the program is that it's easy to use, so anyone can make a custom macro to do there own specific task.

I'll post an example soon so you can get an idea of what it does.  Then you can start working on customizing it for your own needs.

Reply #8 - 2011 May 07, 4:43 pm
FooSoft Member
From: Seattle, WA Registered: 2009-02-15 Posts: 513 Website

Yomichan can do sentences smile

Reply #9 - 2011 May 07, 8:13 pm
Asriel Member
From: 東京 Registered: 2008-02-26 Posts: 1343

Yeah, I'm a little unclear about what the benefits of this over, say yomichan or wrightrak's rikaichan mod (granted there is an extra step involved in this one...but a minimal one)

The way I make my cards, I'm not sure you'd be able to do something automated...I generally have a word on one side, and a sentence with it and/or definition on the back.

Reply #10 - 2011 May 08, 9:32 pm
jettyke Member
From: 九州 Registered: 2008-04-07 Posts: 1194

Are you interested in making productivity apps and the like?

Probably not so much to do with anki though.

Reply #11 - 2011 May 11, 7:04 am
foodcubes Member
From: USA Registered: 2010-07-18 Posts: 90

Ok, here is an example of what the program can do.  This is just the starting point; you can make it do as much as you want it to do for automating repetitive tasks.

1.  Download this small program:  http://www.megaupload.com/?d=764KXF98
2.  Open the program (it will run in the taskbar)
3.  Open only the following programs:

Web browser (or some reading material source), Anki, and an Anki "Add Items" card.

4.  Select the text you want entered into Anki
5.  Hit ctrl+alt+a

Last edited by foodcubes (2011 May 11, 7:04 am)

Reply #12 - 2011 May 11, 7:48 am
jettyke Member
From: 九州 Registered: 2008-04-07 Posts: 1194

Wow, it's cool.

Combine it with Cranks' dictionary hack in card model and you will basically have a definition for each card also, but the definition would be in the net browser though.

Last edited by jettyke (2011 May 11, 7:49 am)

Reply #13 - 2013 January 31, 3:29 pm
psychopatate Member
From: Syria Registered: 2012-09-04 Posts: 60

I've been looking for something like this for over 3 weeks and absolutely no luck. Now I find about this thread and the link is dead :'( ! Fkoda !!! 

Foodcubes, guys, any one who downloaded the program, would you PLEASE :'( upload it somewhere ? Or email me a copy at (psycho.bignose@hotmail.com), I'll upload it myself afterwards 'cause I'm sure other people would want it !

*cross fingers*

Last edited by psychopatate (2013 January 31, 3:32 pm)

Reply #14 - 2013 January 31, 7:44 pm
Oniichan Member
From: 名古屋 Registered: 2009-02-02 Posts: 269

psychopatate wrote:

I've been looking for something like this for over 3 weeks and absolutely no luck. Now I find about this thread and the link is dead :'( ! Fkoda !!! 

Foodcubes, guys, any one who downloaded the program, would you PLEASE :'( upload it somewhere ? Or email me a copy at (psycho.bignose@hotmail.com), I'll upload it myself afterwards 'cause I'm sure other people would want it !

*cross fingers*

FooSoft wrote:

Yomichan can do sentences smile

Yomichan can do sentences

http://foosoft.net/projects/yomichan/

There's also Rikaisama.

Last edited by Oniichan (2013 January 31, 7:48 pm)

rich_f Member
From: north carolina Registered: 2007-07-12 Posts: 1708

There's also EPWING to Anki. If you have some EPWING dictionaries floating around, it will take a vocab list you feed it (among other parameters) and generate a mess of sentences for you. Or whatever it can parse from the EPWING file. It's here somewhere on the board.

psychopatate Member
From: Syria Registered: 2012-09-04 Posts: 60

I haven't tried either. But during my 3-week searching, I read about it. It adds Japanese sentences to Anki, but how about other languages hmm ? Any experience ?

Last edited by psychopatate (2013 February 01, 7:28 am)

rich_f Member
From: north carolina Registered: 2007-07-12 Posts: 1708

EPWING to Anki only works with specified Japanese-English and Japanese-Japanese dictionaries, as far as I know. So it would only be useful for learning Japanese.

Tori-kun このやろう
Registered: 2010-08-27 Posts: 1193 Website

IMHO it's a pitty Epwing2Anki and Rikai-sama only exist for Japanese-English. I would love to brush up my English with Anki as well but unfortunately I cannot code.

Would it be difficult at least modifying Rikai-sama in a way it would be able to recognise English vocabularies and save them to txt?? Anyone? Why not making this generic hm wink

psychopatate Member
From: Syria Registered: 2012-09-04 Posts: 60

I see many people are interested !
Honestly, such a program is a real jewel. Not that it's so difficult to manually add vocab and sentences, but if it's possible, why not let the computer do it big_smile ? It DOES save a lot of time ! The more you read, the more useful it will be !
It sucks to be ignorant in computers hmm I'd love to able to create useful programs the way I like ! (And I WILL, someday !) then share them smile

Foodcubes, I'm praying you'll come back :')

Last edited by psychopatate (2013 February 01, 7:48 am)

ryuudou Member
Registered: 2009-03-05 Posts: 406

Does Yomichan not accomplish what you want?

Tori-kun このやろう
Registered: 2010-08-27 Posts: 1193 Website

ryuudou wrote:

Does Yomichan not accomplish what you want?

Good question -- not as far as I know? Never got my head around Yomichan, but I suppose it's only for Japanese/English.

psychopatate Member
From: Syria Registered: 2012-09-04 Posts: 60

Nope, it doesn't sad

I've never tried before, but I just did. I tried to load a .txt file in French but what was opened is a text in Japanese with the same length hmm

  • 1