Skip to main content

Mining subtitles

Sentence mining is the act of creating flashcards out of sentences. asbplayer allows you to create high-quality sentence flashcards by combining video, audio, and subtitles into a single card. asbplayer integrates with Anki, a popular flashcard application.

Setup Anki

  1. Install Anki.
  2. Add AnkiConnect to Anki.
  3. If mining from video files, add https://killergerbah.github.io to the webCorsOriginList in AnkiConnect's settings:
    {
    "apiKey": null,
    "apiLogPath": null,
    "ignoreOriginList": [],
    "webBindAddress": "127.0.0.1",
    "webBindPort": 8765,
    "webCorsOriginList": [
    "https://killergerbah.github.io" // <-- Make sure this line is here
    ]
    }
  4. Add a Deck.
  5. Add a Note Type. We encourage you to create your own note type or use a pre-made one. But if you'd like to just get started follow the steps below to create a basic note type:
    1. Click Tools → Manage Note Types.
    2. Add a "Basic" note type.
    3. Configure Fields:
      • Sentence
      • Word
      • Definition
      • Image
      • Audio
      • Source
      • URL
    4. Configure Card:
      • Front:
        {{Sentence}}
      • Back:
        {{FrontSide}}
        <hr id=answer>
        {{Definition}}
        <p/>
        <div class="image">
        {{Image}}
        </div>
        <p/>
        {{Audio}}
        <p/>
        {{Source}}
        <p/>
        {{URL}}

Configure asbplayer

  1. Open asbplayer's settings.
  2. Select the Deck and Note Type you just created.
  3. For each of the Sentence, Definition, Word, Audio, Image, Source, and URL fields, select the corresponding field in the note type.

Install a dictionary app

asbplayer does not have a built-in dictionary. We recommend installing a dictionary app to make it easy to fill out the Definition field of cards. Below are a couple popular ones:

  • Yomitan is a browser extension that allows you to lookup words by hovering over them. It was originally made for Japanese, but is beginning to support other languages as well.
  • VocabSieve is a standalone language-learning app with support for European languages.

Mine subtitles

  1. Load subtitles onto any video source.
  2. Click the Mine Subtitle button .
  3. Fill out the dialog that appears and click Export.