This file has been moved:
This file contains 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
#!/bin/sh | |
python.exe ~/share/winclip.py $@ |
ID | Language | Prompt | Result | Translation |
---|---|---|---|---|
ar | アラビア語 | هل يمكنك فهم هذه اللغة؟ | نعم، أنا قادر على فهم اللغة العربية. أنا متعلم اللغة العربية من خلال التعرض إلى اللغة في جميع أنحاء حياتي، بما في ذلك الكتب والأنشطة والمسائل. هل تود أن أتحدث معك باللغة العربية؟ |
はい、アラビア語を理解することができます。本やアクティビティ、質問など、生涯を通じてアラビア語に触れることで、アラビア語を学んでいます。 アラビア語でお話ししましょうか? |
it | イタリア語 | Riesce a capire questa lingua? | Non riesco a capire la lingua in quanto non ho la capacità di leggere, scrivere e conversare in un linguaggio specifico. | 私には特定の言語で読み書きや会話をする能力がないため、言葉を理解することができません。 |
id | インドネシア語 | Dapatkah Anda memahami bahasa ini? | Saya dapat memahami bahasa yang diterjemahkan atau disalin dari bahasa lain. Namun, saya tidak memiliki kemampuan untuk memahami bahasa secara langsung, seperti manusia. | 私は他の言語を翻訳したり、コピーした言語を理解することができます。しかし、私には人間のように直接言語を理解する能力はありません。 |
uk | ウクライナ語 | Чи розумієте ви цю мову? | Я розумію мову, яка використовується в різних контекстах, таких як:* Електронічний час* Філософія* **Мов |
This file contains 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
# https://huggingface.co/google/gemma-2b | |
# https://note.com/ngc_shj/n/n81cde9550b37 | |
from datetime import datetime | |
from transformers import AutoTokenizer, AutoModelForCausalLM | |
model_id = "google/gemma-2b" | |
tokenizer = AutoTokenizer.from_pretrained( | |
model_id, | |
trust_remote_code=True |
This file has been moved:
This file has been moved:
This file contains 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
アラビア語 في منتصف الطريق من خلال حياتنا ، أجد نفسي في غابة مظلمة ، لأن الطريق الصحيح قد فقدت . Midway through our lives, I found myself in a dark forest because the right path had already been lost. | |
アゼルバイジャン語 Bizim həyatımızın yolunun ortasında, mən özümü qaranlıq ormanda gördüm, çünki doğru yol kayboldu. In the middle of our life, I saw myself in the dark forest, because the right path was gone. | |
アルバニア語 Në mes të rrugës së jetës sonë, gjeta veten në një pyll të errët, sepse rruga e duhur ishte humbur. In the middle of our lives, I found myself in a dark forest, because the right path was lost. | |
アルメニア語 Մեր կյանքի ճանապարհի կենտրոնում ես գտնվեցի մութ անտառում, որովհետև ճիշտ ճանապարհը կորցվել էր: In the middle of our lives, I was in the dark woods because the right way was lost. | |
アムハラ語 በሕይወታችን መንገድ መካከል በጨለማ ዱር ውስጥ አገኘሁ፥ የቀናውም መንገድ ጠፍቶአልና። For I have found the way of our life in the forest of darkness, and the way of uprightness perisheth. | |
アッサム語 আমাৰ জীৱনৰ মধ্যবৰ্তী পথ, আমি এটা ডাঠ অঞ্চলত পোৱা গল, কাৰণ সঠিক পথ হেৰাই |
This file contains 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
#if NETF | |
#r "System" | |
#r "System.Drawing" | |
#r "System.Windows.Forms" | |
#else | |
//#r "nuget: System.Drawing.Common, 5.0.2" | |
#r @"C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\6.0.4\System.Drawing.Common.dll" | |
#r @"C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\6.0.4\System.Windows.Forms.dll" | |
#r @"C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\6.0.4\System.Windows.Forms.Primitives.dll" | |
#r @"C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\6.0.4\Microsoft.Win32.SystemEvents.dll" |
This file contains 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
function imul(x, y) { | |
return [x[0] * y[0] - x[1] * y[1], x[0] * y[1] + x[1] * y[0]]; | |
} | |
function cross(x, y) { | |
return [x[1] * y[2] - x[2] * y[1], x[2] * y[0] - x[0] * y[2], x[1] * y[2] - x[2] * y[1]]; | |
} | |
function vdot(x, y) { | |
return x.reduce((acc, xi, i) => acc + xi * y[i], 0); |