自分を変えたいと思いませんか?
でもそれって大変ですよね。
素人がアウトプットするのって抵抗あるよね?
アウトプットを多くしよう
インプット3:アウトプット7が理想という説を信じるならば、圧倒的にアウトプット量が足りていない。
[Read More]自分を変えたいと思いませんか?
でもそれって大変ですよね。
素人がアウトプットするのって抵抗あるよね?
インプット3:アウトプット7が理想という説を信じるならば、圧倒的にアウトプット量が足りていない。
[Read More]勉強嫌いやと思ってない?それ、学校の勉強が嫌いなだけかもしれへんで?
そういえば勉強のコツってメモしたっけか?
まあ、個人的なやり方やし、なんかエグイ結果が出たかと言われると困るんやけど。
コンテンツの世界観って大事にしてる?
私は最近その楽しみ方が出来るようになって、幅が広がった気がするんよ。
#アイマス の曲を久しぶりに聞いてるんやけど、曲とドラマパートを合わせて楽しむというのは世界観の娯楽やな! #ヒプノシスマイク でも同じ楽しみ方が出来て、改めて聞き返すと曲の歌詞や音への解釈力が上がっててより深く楽しめる!すごいわ。
[Read More].
A vector of documents can be obtained using Universal Sentence Encoder.
Supports multiple languages.
Japanese is supported.
Can handle Japanese sentences as vectors.
Clustering, similarity calculation, feature extraction.
Execute the following command as preparation.
pip install tensorflow tensorflow_hub tensorflow_text numpy
Trained models are available.
See the python description below for details on how to use it.
import tensorflow_hub as hub
import tensorflow_text
import numpy as np
# for avoiding error
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
def cos_sim(v1, v2):
return np.dot(v1, v2) / (np.linalg.norm(v1) * np.linalg.norm(v2))
embed = hub.load("https://tfhub.dev/google/universal-sentence-encoder-multilingual/3")
texts = ["I saw a comedy show yesterday." , "There was a comedy show on TV last night." , "I went to the park yesterday." , "I saw a comedy show last night.", "Yesterday, I went to the park."]
vectors = embed(texts)
```.
See the following link for more details
[Try Universal Sentence Encoder in Japanese](https://qiita.com/kenta1984/items/9613da23766a2578a27a)
### Postscript
```py
import tensorflow_text
Without this line, you will get an error like ``Sentencepiece not found! error. This line is not explicitly used in the sample source, but is required for the actual execution. This line is not explicitly used in the sample source, but is required in the actual runtime.
[Read More]この記事はコマンドラインをある程度利用できる方に向けて書いています。
コマンドラインがなにか分からないけど、pythonを使いたい方はGoogle Colaboratory というサービスの利用を検討してください。
[Read More]You’ve learned about machine learning, but you don’t know how to use it! Isn’t it?
It is easy to overlook this if you don’t pay attention to it when you study it, but if you don’t keep your antennas up, you won’t know how to use it.
If you don’t keep your antennae up, you won’t know how to use it. Since a tool is only a tool if it is used, you should make a note of how you use your newly acquired tool.
[Read More]数学は暗記だ、と思っている人居ますよね?
直観で理解できたら簡単なのにって思いませんか?
物理数学には挫折するポイントが幾つもある。
大学で数学の講義を受けて、ヒイコラ言いながら単位を取る。理解など到底おぼつかない。まして直観的な方法だって?
[Read More]関連書籍
[Read More]huggingface has released a Japanese model for BERT.
The Japanese model is included in transformers.
However, I stumbled over a few things before I could get it to actually work in a Mac environment, so I’ll leave a note.
The morphological analysis engine, mecab, is required to use BERT’s Japanese model.
The tokenizer will probably ask for mecab.
This time, we will use homebrew to install Mecab and ipadic.
[Read More]Mac にpythonをどうやってインストールしたらいいのか悩んでいませんか?
単純にhome brewを使ってインストールしてもいいのですが、 以下のデメリットがあります。
[Read More]