This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import re | |
import sqlite3 | |
import zipfile | |
import numpy as np | |
import pandas as pd | |
import spacy | |
from ankipandas import Collection | |
from sklearn.feature_extraction.text import TfidfVectorizer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numba | |
import numpy as np | |
@numba.njit | |
def sliding_window_view(a, w): | |
s = a.strides[0] | |
shape = a.shape[0] - w + 1, w | |
return np.lib.stride_tricks.as_strided(a, shape, (s, s)) | |
@numba.njit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Directive, ElementRef, Input } from '@angular/core'; | |
import { Content, Platform } from 'ionic-angular'; | |
import { Keyboard } from 'ionic-native'; | |
/** | |
* @name KeyboardAttachDirective | |
* @description | |
* The `keyboardAttach` directive will cause an element to float above the | |
* keyboard when the keyboard shows. Currently only supports the `ion-footer` element. |