This file contains hidden or 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
from weaviate_connection import WeaviateConnection | |
import streamlit as st | |
def main(): | |
collection_name = "MultiModalKagome" | |
properties_kagome = ["caption_ja"] | |
properties_gse = ["caption_ja_gse"] | |
limit = 20 |
This file contains hidden or 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
from weaviate_connection import WeaviateConnection | |
import streamlit as st | |
def main(): | |
collection_name = "MultiModalKagome" | |
properties_kagome = ["caption_ja"] | |
properties_gse = ["caption_ja_gse"] | |
limit = 20 |
This file contains hidden or 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
package main | |
import ( | |
"fmt" | |
"github.com/go-ego/gse" | |
) | |
func main() { |
This file contains hidden or 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
{{/* Generates an array of blog contents for indexing orama */}} | |
{{- $.Scratch.Add "item" slice -}} | |
{{- $section := $.Site.GetPage "section" .Section }} | |
{{- range .Site.AllPages -}} | |
{{- if or (and (.IsDescendant $section) (and (not .Draft) (not .Params.private))) $section.IsHome -}} | |
{{- if (and (eq .Section "post") .File) -}} | |
{{- if .Params.Tags -}} | |
{{- $.Scratch.Add "item" (dict "id" .File.UniqueID "date" .Date.UTC.Unix "dir" .File.Dir "lang" .Lang "lastmod" .Lastmod.UTC.Unix "permalink" .Permalink "publishdate" .PublishDate "title" .Title "tags" .Params.Tags "summary" .Summary "contents" .Plain)}} | |
{{- else -}} | |
{{- $.Scratch.Add "item" (dict "id" .File.UniqueID "date" .Date.UTC.Unix "dir" .File.Dir "lang" .Lang "lastmod" .Lastmod.UTC.Unix "permalink" .Permalink "publishdate" .PublishDate "title" .Title "summary" .Summary "contents" .Plain)}} |
This file contains hidden or 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
PUT join_highlight | |
{ | |
"mappings": { | |
"properties": { | |
"my_id": { | |
"type": "keyword" | |
}, | |
"my_join_field": { | |
"type": "join", | |
"relations": { |
This file contains hidden or 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
## version 7.9で動作するはずです。 discard_compound_tokenの設定は7.8までは動作しないです(それ以外については動作します。) | |
DELETE en_synonym_test | |
PUT en_synonym_test | |
{ | |
"settings": { | |
"analysis": { | |
"analyzer": { | |
"en_synonym": { |
This file contains hidden or 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
start with punctuation: [606]. one char is [384] | |
all punctuations: [111] | |
hasPunctuations: [1780] | |
+++++++++++++++++ Start with Punctuation +++++++++++++++++++++ | |
¡ | |
¢ | |
£ | |
¤ | |
¦ | |
§ |
This file contains hidden or 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
start with punctuation: [101]. one char is [97] | |
all punctuations: [3] | |
hasPunctuations: [723] | |
+++++++++++++++++ Start with Punctuation +++++++++++++++++++++ | |
」 | |
— | |
← | |
゜ | |
▽ | |
` |
This file contains hidden or 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
## 0. インデックスの準備 | |
### 再現可能なようにまず削除 | |
DELETE file_dic_sample | |
### 辞書ファイルの用意 | |
ファイル名 : custom_dic.txt | |
配置場所 : ES_PATH_CONF/analyzer/custom_dic.txt | |
内容 | |
``` |
This file contains hidden or 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
## For rewrite prezto default settings | |
EDITOR=vim | |
VISUAL=vim | |
### aliases | |
alias ls='ls -aG' | |
alias vscode='open -a ~/Applications/Visual\ Studio\ Code.app ' | |
### For ant | |
export ANT_OPTS=-Dfile.encoding=UTF-8 |
NewerOlder