end0tknr's kipple - web写経開発

太宰府天満宮の狛犬って、妙にカワイイ

2024-04-01から1ヶ月間の記事一覧

bcp import from utf-8 csv to SQL Server 2022 for Linux

install SQL Server to Oracle Linux 8 - end0tknr's kipple - web写経開発 先日の上記entryの続きです。 今回は、SQL Server 2022 for Linux に対し、 utf-8で記載されたcsvファイルをbcpコマンドでインポートします。 目次 utf-8のデータベース作成と、そ…

install php-fpm , apache httpd to oracle linux

参考url https://qiita.com/daichi_pd/items/1d9b4c8bef2579abc670 https://qiita.com/hamburg-love/items/ae819a7abf921af77376 https://itc-engineering-blog.netlify.app/blogs/rhel9-apache-php-postgresql install apache httpd php php-fpm $ sudo yum…

install SQL Server to Oracle Linux 8

RHEL:Linux 上に SQL Server をインストールする - SQL Server | Microsoft Learn に記載の通りで全くOK。 以下は、インストールした sql serverのバージョン 1> SELECT @@VERSION 2> go - Microsoft SQL Server 2022 (RTM-CU12-GDR) (KB5036343) - 16.0.412…

sqlachemy + psycopg2 +fastapi for python で postgres への sql実行

先日のentryの続きとして、更に fastapi を経由し、 postgres への 生sqlを実行します import os import sys sys.path.append( os.path.dirname(__file__)+"/../lib" ) from fastapi.middleware.cors import CORSMiddleware import fastapi import json impo…

sqlachemy + psycopg2 for python で postgres への sql実行

# -*- coding: utf-8 -*- import sqlalchemy db_conf = {"user":"postgres", "passwd":"", "host" :"localhost", "port" :"5432", "db" :"saawo" } def main(): sql = sqlalchemy.text("SELECT * FROM city WHERE code = :code") engine = sqlalchemy.create…

DBeaver Community

これまで、DBへの接続clientは、 http://www.hi-ho.ne.jp/tsumiki/ にある CSE程度しか触ったことがありませんが https://dbeaver.io/ も興味深い

FastAPI for python における CORS設定( Cross-Origin Resource Sharing )

async load_disp_date_range(vue_obj){ let req_url = this.server_api_base() + "DispDateRange"; let res = await fetch(req_url); let disp_dates = await res.json(); vue_obj.disp_date_min = disp_dates[0]; vue_obj.disp_date_max = disp_dates[1]; v…

sklearn.feature_extraction.text.TfidfVectorizer for python によるTF-IDF特徴語算出

更に前回entryの続きとして以下 from sklearn.feature_extraction.text import TfidfVectorizer from sudachipy import dictionary import csv import pandas import re import unicodedata qa_sys_src_csv = "qa_srcs_full.csv" sudachi_conf_json = "c:/Us…

sudachipy for python による sudachiユーザ辞書の利用 (形態素解析)

先程のentryの続きです sudachi.json 元の sudachi.json をコピーし、「"userDict" : [~] 」を追加しています { "systemDict" : null, "characterDefinitionFile" : "char.def", "userDict" : ["c:/Users/end0t/tmp/QA_SGST/sudachi_user_dic/user.dic"], "…

sudachipy for python (miniconda for win)による sudachiユーザ辞書作成

以下の通りです sudachipy.exe コマンドを呼ぶのではなく、 https://github.com/WorksApplications/SudachiPy/blob/develop/sudachipy/dictionarylib/userdictionarybuilder.py にある UserDictionaryBuilder クラスを 内部的に呼びたかったのですが、userdi…

O'Reilly 「入門 自然言語処理」の12章

メモ O'Reilly Japan Blog - 「入門 自然言語処理」の12章を公開しています! Python による日本語自然言語処理 O'Reilly Japan - 入門 自然言語処理

psycopg2.DatabaseError: error with status PGRES_TUPLES_OK and no message from the libpq

pythonの自前コード内で、postgresへの connection poolを行い、更に、 concurrent.futures.ProcessPoolExecutor for python の並列処理による影響でしょうか psycopg2.DatabaseError: error with status PGRES_TUPLES_OK and no message from the libpq の…