Skip to content

Commit cc0f736

Browse files
committed
Change example from TOYOTA to Apple
1 parent 731fb95 commit cc0f736

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

chapters/ja/slides/chapter1_02_statistical-models.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@ Notes: 依存関係解析の結果は、標準化されたラベルで表現さ
153153

154154
# 固有表現抽出
155155

156-
<img src="/ner_example_ja.png" alt="'トヨタはイギリスのスタートアップを10億円で買いそうだ'という文の固有表現抽出結果" width="80%" />
156+
<img src="/ner_example_ja.png" alt="'アップルはイギリスのスタートアップを10億円で買いそうだ'という文の固有表現抽出結果" width="80%" />
157157

158158
```python
159159
# テキストを処理
160-
doc = nlp("トヨタはイギリスのスタートアップを10億円で買いそうだ")
160+
doc = nlp("アップルはイギリスのスタートアップを10億円で買いそうだ")
161161

162162
# 抽出された固有表現をイテレート
163163
for ent in doc.ents:
@@ -166,7 +166,7 @@ for ent in doc.ents:
166166
```
167167

168168
```out
169-
トヨタ ORG
169+
アップル ORG
170170
イギリス GPE
171171
10億円 MONEY
172172
```
@@ -178,7 +178,7 @@ Notes: 固有表現とは、例えば人、国、組織のような、名前の
178178
`doc.ents`プロパティは`Span`オブジェクトのイテレータを返します。
179179
そしてそれぞれの`Span`に対して、`.text`でテキストを、`.label_`で固有表現のラベルを取得できます。
180180

181-
このケースでは、「トヨタ」を組織、「イギリス」を地理名称、「10億円」を金額、と正しく解析されています。
181+
このケースでは、「アップル」を組織、「イギリス」を地理名称、「10億円」を金額、と正しく解析されています。
182182

183183
---
184184

static/ner_example_ja.png

905 Bytes
Loading

0 commit comments

Comments
 (0)