@@ -18,7 +18,6 @@ APIs and SDKs that use cognitive computing to solve complex problems. |
18 | 18 | * [Alchemy Language](#alchemy-language) |
19 | 19 | * [Alchemy Vision](#alchemy-vision) |
20 | 20 | * [Alchemy Data News](#alchemy-data-news) |
21 | | - * [Concept Expansion](#concept-expansion) |
22 | 21 | * [Concept Insights](#concept-insights) |
23 | 22 | * [Dialog](#dialog) |
24 | 23 | * [Document Conversion](#document-conversion) |
@@ -154,33 +153,6 @@ DocumentsResult result = service.getNewsDocuments(params); |
154 | 153 | System.out.println(result); |
155 | 154 | ``` |
156 | 155 |
|
157 | | -### Concept Expansion |
158 | | -Map euphemisms or colloquial terms to more commonly understood phrases using |
159 | | -the [Concept Expansion][concept_expansion] service. |
160 | | -Example: Create a job, wait for it to finish, and then retrieve results. |
161 | | - |
162 | | -```java |
163 | | -ConceptExpansion service = new ConceptExpansion(); |
164 | | -service.setUsernameAndPassword("<username>", "<password>"); |
165 | | - |
166 | | -String[] seeds = new String[] {"nyc", "dc", "london", "big cities"}; |
167 | | -String label = "demo"; |
168 | | - |
169 | | -Job job = service.createJob(label, seeds); |
170 | | - |
171 | | -while (service.getJobStatus(job) == Job.Status.AWAITING_WORK |
172 | | - || service.getJobStatus(job) == Job.Status.IN_FLIGHT) { |
173 | | - try { |
174 | | - Thread.sleep(4000); |
175 | | - } catch (final InterruptedException e) { |
176 | | - e.printStackTrace(); |
177 | | - } |
178 | | -} |
179 | | - |
180 | | -System.out.println(service.getJobResult(job)); |
181 | | -``` |
182 | | - |
183 | | - |
184 | 156 | ### Concept Insights |
185 | 157 | Use the [Concept Insights][concept_insights] service to identify words in the text that |
186 | 158 | correspond to concepts in a Wikipedia graph. |
|