Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/DeepPhe/dphe-stream
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnLevander committed Aug 26, 2021
2 parents 30a75b2 + 3765e61 commit 6f03a5a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ public void process( final JCas jCas ) throws AnalysisEngineProcessException {
findMetastasis( jCas, neoplasmList, metastasisList );
}
if ( !allBreastTumors.isEmpty() ) {
findAllStatus( jCas, paragraph, allMassNeoplasmList, allBreastTumors );
// We now use BiomarkerFinder for all biomarkers including the brca receptor status
// findAllStatus( jCas, paragraph, allMassNeoplasmList, allBreastTumors );
// if there are breast sites then there may be breast site modifiers
// final Collection<IdentifiedAnnotation> breasts
// = Neo4jOntologyConceptUtil.getAnnotationsByUriBranch( jCas, paragraph, UriConstants.BREAST );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ static public Map<String, Collection<ConceptAggregate>> createUriConceptAggregat



LOGGER.info( "Created " + chain.size() + "mention ConceptAggregate " + concept.getUri() + " " + concept.getId() + " "
+ "scored:"
+ " " + concept.getUriScore() );
// LOGGER.info( "Created " + chain.size() + "mention ConceptAggregate " + concept.getUri() + " " + concept.getId() + " "
// + "scored:"
// + " " + concept.getUriScore() );
// uriRoots.forEach( (k,v) -> LOGGER.info( "URI " + k + " with -unordered- root URIs (" + String.join( ",", v ) + ")" ) );


Expand Down Expand Up @@ -146,7 +146,7 @@ static public Map<String, Collection<ConceptAggregate>> createUriConceptAggregat
Collections.singletonList( mentionNoteId.getKey() ) ) ) );


LOGGER.info( "Created Simple ConceptAggregate of " + bestUri );
// LOGGER.info( "Created Simple ConceptAggregate of " + bestUri );


}
Expand All @@ -155,8 +155,8 @@ static public Map<String, Collection<ConceptAggregate>> createUriConceptAggregat
addRelations( conceptAggregates.values(), patientRelations );


LOGGER.info( "\n!!! All Concept Aggregates:" );
conceptAggregates.values().stream().flatMap( Collection::stream ).forEach( c -> LOGGER.info( c + "\n" ) );
// LOGGER.info( "\n!!! All Concept Aggregates:" );
// conceptAggregates.values().stream().flatMap( Collection::stream ).forEach( c -> LOGGER.info( c + "\n" ) );



Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/healthnlp/deepphe/util/MentionUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,8 @@ static public Map<String, Collection<String>> getAssociatedSiteUriMap( final Col
final Map<String, String> bestRoots = UriUtil.getBestRoots( uris );


LOGGER.info( "Best Root URIs for Site URIs: " );
bestRoots.forEach( (k,v) -> LOGGER.info( k + " " + v ) );
// LOGGER.info( "Best Root URIs for Site URIs: " );
// bestRoots.forEach( (k,v) -> LOGGER.info( k + " " + v ) );


final Map<String, Collection<String>> rootChildrenMap = new HashMap<>();
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/pipeline/DpheXn.piper
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//cli OverwriteGraph=n
cli StartNeo4j=n
cli StopNeo4j=e
cli Neo4jUri=r
cli Neo4jUser=user
cli Neo4jPass=pass
Expand Down Expand Up @@ -173,5 +174,6 @@ addLast PatientSummaryCleaner

// Alert User that the pipeline is Finished.
package org.apache.ctakes.core.util.log
addLast Neo4jServerShutdownAe
addLast FinishedLogger
addLast PipelineStopper

0 comments on commit 6f03a5a

Please sign in to comment.