File size: 699 Bytes
adecc9b
 
 
 
 
 
 
 
 
 
 
5770d80
 
adecc9b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "from open_biomed.core.pipeline import InferencePipeline\n",
    "from open_biomed.data import Molecule, Text\n",
    "\n",
    "# Path relative to repo root (run from examples/ directory)\n",
    "cfg_path = \"../configs/text_based_molecule_editing/molt5.json\"\n",
    "pipeline = InferencePipeline(cfg_path)\n",
    "mol = [Molecule.from_smiles(\"CCCCC\")]\n",
    "text = [Text.from_str(\"wow\")]\n",
    "pipeline.run(mol, text)"
   ]
  }
 ],
 "metadata": {
  "language_info": {
   "name": "python"
  },
  "orig_nbformat": 4
 },
 "nbformat": 4,
 "nbformat_minor": 2
}