Skip to content

Instantly share code, notes, and snippets.

View ikegami-yukino's full-sized avatar

IKEGAMI Yukino ikegami-yukino

View GitHub Profile
@ikegami-yukino
ikegami-yukino / install_cabocha.sh
Last active February 10, 2019 21:07
CaboChaとそのPythonバインディングを入れる
#!/usr/bin/sh
git clone --depth=1 -b patch https://github.com/humem/cabocha /tmp/cabocha
cd /tmp/cabocha
./configure --with-charset=utf8
make
make install
pip install git+https://github.com/taku910/cabocha.git#subdirectory=python
@ikegami-yukino
ikegami-yukino / translate_sentiwordnet.py
Last active May 10, 2019 10:45
SentiWordNet を日本語化する
import re
import sqlite3
import time
import requests
DB_PATH = 'wnjpn.db'
SWN_PATH = 'SentiWordNet_3.0.0_20130122.txt'
URL = 'https://script.google.com/macros/s/Please_write_here/exec?text=%s&source=en&target=ja'
RESULT_PATH = 'result.csv'
@ikegami-yukino
ikegami-yukino / build-mozc-on-macos-10.13.6.md
Last active April 11, 2020 17:24 — forked from akirakubo/build-mozc-on-macos-10.13.6.md
Build Mozc with/without Qt on macOS 10.13.6 (or later)

Build Mozc with/without Qt on macOS 10.13.6 (or later)

環境

  • macOS 10.13.6
  • Xcode 10.1 (10B61)

ビルドエラーへの対処

いつの間にかビルドがうまく出来なくなったので対処。

#include <stdio.h>
#include <stdlib.h>
#define NUM_PATTERN 5
#define MAX_LENGTH 255
char user_input;
int idx;
char response[NUM_PATTERN][MAX_LENGTH]={
{"さすがですね!"},
@ikegami-yukino
ikegami-yukino / gil_pandas.py
Last active October 19, 2024 17:29
Pyladies Tokyo 10th Aniv. Party
import os
import time
import urllib.request
import zipfile
import pandas as pd
from pandarallel import pandarallel
URL = "https://www.post.japanpost.jp/zipcode/dl/utf/zip/utf_ken_all.zip"
ZIP_FILE_NAME = URL.split("/")[-1]
@ikegami-yukino
ikegami-yukino / .pre-commit-config.yaml
Created December 27, 2024 15:50
Git pre-commit for ruff
files: ^backend/.*$
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.3.7
hooks:
# Run the linter.
- id: ruff
types_or: [python, pyi, jupyter]
args: [--fix]