SemanticImportString["string"]
Datasetオブジェクトを与えるために,文字列を意味的にインポートしようと試みる.
SemanticImportString["string",type]
文字列の全要素を,指定のタイプのものとして解釈しようと試みる.
SemanticImportString["string",{type1,type2,…}]
連続する列の要素を,指定のタイプのものとして解釈しようと試みる.
SemanticImportString["string",col1->type1,col2->type2,…]
名前付きの列にある要素を,指定のタイプのものとして解釈しようと試みる.
SemanticImportString["string",typespec,form]
結果を指定の形式で与える.


SemanticImportString
SemanticImportString["string"]
Datasetオブジェクトを与えるために,文字列を意味的にインポートしようと試みる.
SemanticImportString["string",type]
文字列の全要素を,指定のタイプのものとして解釈しようと試みる.
SemanticImportString["string",{type1,type2,…}]
連続する列の要素を,指定のタイプのものとして解釈しようと試みる.
SemanticImportString["string",col1->type1,col2->type2,…]
名前付きの列にある要素を,指定のタイプのものとして解釈しようと試みる.
SemanticImportString["string",typespec,form]
結果を指定の形式で与える.
詳細とオプション

- SemanticImportStringは,入力をファイルのコンテンツからではなく文字列から取る点を除き,SemanticImportと同じ機能性を持つ.
- SemanticImportStringは,次のオプションを取る.
-
CharacterEncoding "UTF-8" 応答本文における文字符号化 Delimiters Automatic 要素間に挿入する区切り記号で ExcludedLines {} 結果から除外する行 HeaderLines Automatic ヘッダとして扱う行番号 MissingDataRules Automatic データを「欠損」とみなす際の置換え規則
例題
すべて開く すべて閉じる例 (6)
スコープ (4)
欠落値を特殊形式Missing["UnknownData"]の形式"Unknown"で返す:
オプション (9)
HeaderLines (2)
アプリケーション (3)
数量のリストをDatasetオブジェクトとしてインポートする:
考えられる問題 (4)
データの解釈は,そのコンテキストに依存する.これ以上の文脈が与えられなければ,"12,3"は日付として解釈される:
有効な日付ではない値"45,4"が含まれる文脈では,"12,3"は2つの整数として解釈される:
SemanticImportStringはSemanticInterpretationとは異なり,単純で素早い推測しか行わない.SemanticImportStringは州の名前を文字列としてインポートする:
SemanticInterpretationは州の名前をEntityオブジェクトとしてインポートする:
タイプの自動選択では,明示的にタイプを指定した場合よりも小さい解釈集合から選択する:
Automaticタイプは,自動的に選択された列数を指定する:
{Automatic}タイプは,自動的に選択されたタイプの単一列を指定する:
タイプのリスト中のAutomaticは,対応する列に連続的に適用される:
関連項目
SemanticImport SemanticInterpretation Interpreter WolframAlpha ImportString Dataset
Function Repository: AddSemantics
関連するガイド
-
▪
- 自由形式入力と外部入力 ▪
- 式と文字列の間の変換 ▪
- テキストの操作 ▪
- 言語学データ
テキスト
Wolfram Research (2014), SemanticImportString, Wolfram言語関数, https://reference.wolfram.com/language/ref/SemanticImportString.html.
CMS
Wolfram Language. 2014. "SemanticImportString." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SemanticImportString.html.
APA
Wolfram Language. (2014). SemanticImportString. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SemanticImportString.html
BibTeX
@misc{reference.wolfram_2025_semanticimportstring, author="Wolfram Research", title="{SemanticImportString}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/SemanticImportString.html}", note=[Accessed: 18-September-2025]}
BibLaTeX
@online{reference.wolfram_2025_semanticimportstring, organization={Wolfram Research}, title={SemanticImportString}, year={2014}, url={https://reference.wolfram.com/language/ref/SemanticImportString.html}, note=[Accessed: 18-September-2025]}