0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

SPSS Modeler Flowのフローを自動生成(日本語のノード名)

0
Last updated at Posted at 2026-02-16

皆さんこんにちは!この記事では、こちらの記事でノードの自動生成を試したときに日本語が文字化けしてしまいましたが、その後解決したので日本語名対応のコードを載せています。IBM Bobとやり取りする中で日本語名の表示が確認できました。

image.png

stream = modeler.script.stream()

# ノード作成
node1 = stream.createAt("dataassetimport", u"既存顧客データ", 100, 100)
node2 = stream.createAt("dataassetimport", u"既存顧客判定データ", 100, 250)
merge = stream.createAt("merge", u"顧客番号で結合", 350, 175)
table = stream.createAt("table", u"結合結果", 600, 175)

# データアセットIDの設定を試みる
asset1_id = "d703bcb2-e1c8-49a5-9fb9-ef8d21d0adb2"
asset2_id = "b65da919-2658-4480-b412-20e05a2bdc57"

node1.setPropertyValue("asset_id", asset1_id)
node2.setPropertyValue("asset_id", asset2_id)
print("Success!")


# ノード接続
stream.link(node1, merge)
stream.link(node2, merge)
stream.link(merge, table)

データのアセットIDはURLの中にあります。
image.png

ご参考ください。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?