|
9 | 9 | "\n", |
10 | 10 | ">[Diffbot](https://docs.diffbot.com/docs/getting-started-with-diffbot) is a suite of ML-based products that make it easy to structure web data.\n", |
11 | 11 | ">\n", |
12 | | - ">Diffbot's [Natural Language Processing API](https://www.diffbot.com/products/natural-language/) allows for the extraction of entities, relationships, and semantic meaning from unstructured text data.", |
13 | | - "\n", |
| 12 | + ">Diffbot's [Natural Language Processing API](https://www.diffbot.com/products/natural-language/) allows for the extraction of entities, relationships, and semantic meaning from unstructured text data.\n", |
14 | 13 | "[](https://colab.research.google.com/github/langchain-ai/langchain/blob/master/docs/docs/integrations/graphs/diffbot.ipynb)\n", |
15 | 14 | "\n", |
16 | 15 | "## Use case\n", |
|
70 | 69 | "source": [ |
71 | 70 | "from langchain_experimental.graph_transformers.diffbot import DiffbotGraphTransformer\n", |
72 | 71 | "\n", |
73 | | - "diffbot_api_token = \"DIFFBOT_API_TOKEN\"\n", |
74 | | - "diffbot_nlp = DiffbotGraphTransformer(diffbot_api_token=diffbot_api_token)" |
| 72 | + "diffbot_api_key = \"DIFFBOT_KEY\"\n", |
| 73 | + "diffbot_nlp = DiffbotGraphTransformer(diffbot_api_key=diffbot_api_key)" |
75 | 74 | ] |
76 | 75 | }, |
77 | 76 | { |
|
111 | 110 | " --name neo4j \\\n", |
112 | 111 | " -p 7474:7474 -p 7687:7687 \\\n", |
113 | 112 | " -d \\\n", |
114 | | - " -e NEO4J_AUTH=neo4j/pleaseletmein \\\n", |
| 113 | + " -e NEO4J_AUTH=neo4j/password \\\n", |
115 | 114 | " -e NEO4J_PLUGINS=\\[\\\"apoc\\\"\\] \\\n", |
116 | 115 | " neo4j:latest\n", |
117 | 116 | "``` \n", |
|
129 | 128 | "\n", |
130 | 129 | "url = \"bolt://localhost:7687\"\n", |
131 | 130 | "username = \"neo4j\"\n", |
132 | | - "password = \"pleaseletmein\"\n", |
| 131 | + "password = \"password\"\n", |
133 | 132 | "\n", |
134 | 133 | "graph = Neo4jGraph(url=url, username=username, password=password)" |
135 | 134 | ] |
|
296 | 295 | "name": "python", |
297 | 296 | "nbconvert_exporter": "python", |
298 | 297 | "pygments_lexer": "ipython3", |
299 | | - "version": "3.10.12" |
| 298 | + "version": "3.9.18" |
300 | 299 | } |
301 | 300 | }, |
302 | 301 | "nbformat": 4, |
|
0 commit comments