kunishou commited on
Commit
7d5a6ee
·
1 Parent(s): 1f41745

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +44 -0
README.md CHANGED
@@ -7,6 +7,50 @@ This dataset was created by automatically translating "OpenAssistant/oasst1" int
7
  The "ng_translation" flag indicates that the translation was not successful, and "1" means that the translation failed.
8
  Therefore, for data with "1", "text" and "text_en" contain the same text.
9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  以下のコードを用いることで、 Instruction と Output (prompterの命令とassistantの回答)の形式に変換することができます。
11
  ファインチューニングで使用する場合はこちらのコードで変換して下さい。
12
 
 
7
  The "ng_translation" flag indicates that the translation was not successful, and "1" means that the translation failed.
8
  Therefore, for data with "1", "text" and "text_en" contain the same text.
9
 
10
+ **Update:**
11
+ 2023/10/21
12
+ 自動翻訳によるコード関連データの翻訳誤り2000箇所程度を手動で修正しました。
13
+
14
+ **<details><summary>修正イメージを表示</summary><div>**
15
+
16
+ - 修正前
17
+ ```
18
+ もちろん!これは、Flask Webフレームワークを使用して文字列を提供する単純なAPIエンドポイントを作成するPythonスクリプトの例です。
19
+
20
+ フラスコ輸入フラスコから
21
+
22
+ app = flask(__name__)
23
+
24
+ @app.route( '/')
25
+ def hello_world():
26
+ 「こんにちは、世界!」を返します
27
+
28
+ __name__ == '__main__'の場合:
29
+ app.run()
30
+
31
+ このスクリプトでは、最初にフラスコモジュールからフラスコクラスをインポートします。次に、__Name__変数を使用してアプリケーションの名前を指定するフラスコクラスの新しいインスタンスを作成します。
32
+ ```
33
+ - 修正後
34
+ ```
35
+ もちろんです!Flaskウェブフレームワークを使用して、文字列を提供するシンプルなAPIエンドポイントを作成するPythonスクリプトの例を示します:
36
+
37
+ from flask import Flask
38
+
39
+ app = Flask(__name__)
40
+
41
+ @app.route('/')
42
+ def hello_world():
43
+ return 'Hello, world!'
44
+
45
+ if __name__ == '__main__':
46
+ app.run()
47
+
48
+ このスクリプトでは、まず flask モジュールから Flask クラスをインポートします。次に、__name__ 変数を使ってアプリケーションの名前を指定し、Flask クラスの新しいインスタンスを作成します。
49
+ ```
50
+
51
+ </div></details>
52
+
53
+
54
  以下のコードを用いることで、 Instruction と Output (prompterの命令とassistantの回答)の形式に変換することができます。
55
  ファインチューニングで使用する場合はこちらのコードで変換して下さい。
56