Minor bugfix to edge probing notebook
" for t in self._data['targets']:\n",
" buf.write(\"\\n\")\n",
" buf.write(\" span1: {}\\n\".format(_fmt_span(*t['span1'])))\n",
+ " if 'span2' in t:\n",
" buf.write(\" span2: {}\\n\".format(_fmt_span(*t['span2'])))\n",
" labels = utils.wrap_singleton_string(t['label'])\n",
" buf.write(\" label: ({:d})\\t {}\\n\".format(len(labels), \", \".join(labels)))\n",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.6.5"
+ "version": "3.6.8"
}
},
"nbformat": 4,
