基本的に ggerganov/whisper.cpp#220 に書いてある通り。 whisper.cppをOpenBLASを使うようにビルドして、実行時にNVBLASを使う。
Arch Linuxでしか試していない。
https://github.com/ggerganov/whisper.cpp/tree/nvblas
場合によってはmasterブランチでも可、masterブランチでもnvblasをつかうを参照
基本的に ggerganov/whisper.cpp#220 に書いてある通り。 whisper.cppをOpenBLASを使うようにビルドして、実行時にNVBLASを使う。
Arch Linuxでしか試していない。
https://github.com/ggerganov/whisper.cpp/tree/nvblas
場合によってはmasterブランチでも可、masterブランチでもnvblasをつかうを参照
import zipfile | |
import sys | |
from pathlib import Path | |
def unzip(f, encoding, v): | |
with zipfile.ZipFile(f) as z: | |
for i in z.namelist(): | |
n = Path(i.encode('cp437').decode(encoding)) | |
if v: |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
public class CSVParser { | |
private static final Pattern p = Pattern.compile(",|[^,\"]+|\"(?:[^\"]|\"\")*\""); | |
public static List<String> parse(final String line, final int max) { | |
if (max == 0) { |
# coding: utf-8 | |
""" | |
a proof of concept implementation of SQLite FTS tokenizers in Python | |
""" | |
from __future__ import print_function, unicode_literals | |
import sys | |
import ctypes | |
from ctypes import POINTER, CFUNCTYPE | |
import struct |
import zipfile | |
import xml.sax | |
import sys | |
NS = 'http://schemas.openxmlformats.org/spreadsheetml/2006/main' | |
class NonLocalExit(Exception): | |
pass |
# Maintainer: Thomas Jost <schnouki@schnouki.net> | |
# Contributor: Andreas Radke <andyrtr@archlinux.org> | |
# Contributor: Art Gramlich <art@gramlich-net.com> | |
pkgname=icu52 | |
_pkgname=icu | |
pkgver=52.1 | |
pkgrel=1 | |
pkgdesc="International Components for Unicode library" | |
arch=(i686 x86_64) |
<select class="ng-pristine ng-valid" ng-options="e.name for e in entries" ng-model="entry"> | |
<option value="0" selected="selected"> | |
default | |
</option> | |
</select> |
import sys | |
try: | |
from PySide import QtCore | |
from PySide import QtGui | |
from PySide import QtWebKit | |
except: | |
from PyQt4 import QtCore | |
from PyQt4 import QtGui | |
from PyQt4 import QtWebKit |