public interface ConceptDao
Modifier and Type | Method and Description |
---|---|
void |
createConceptGraph(String dir,
String name,
String query,
boolean checkCycle,
Set<String> forbiddenConcepts)
create the concept graph with specified name using specified query.
|
ConceptGraph |
getConceptGraph(String name)
retrieve an existing concept graph.
|
ConceptGraph getConceptGraph(String name)
name
- name of concept graph. Will retrieve from classpath/file
system. @see #createConceptGraphvoid createConceptGraph(String dir, String name, String query, boolean checkCycle, Set<String> forbiddenConcepts) throws IOException
dir
- directory of concept graph (optional). If null will use
directory specified by the system property/ytex property
org.apache.ctakes.ytex.conceptGraphDir. If the property is not
defined, use [directory of ytex.properties]/conceptGraphname
- name of concept graphquery
- returns 2 string columns, 1st column is the child concept, 2nd
column is the parent concept.checkCycle
- if true will check for cycles and remove them (default true).
If this is set to false, then only pagerank can be used on
this graph.forbiddenConcepts
- set of concepts whose edges will not be added to the concept
graph (optional). By default, this includes umls concepts like
C1274012 (Ambiguous concept).IOException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.