Skip to content

Commit

Permalink
fixup spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
rkm committed Feb 15, 2024
1 parent 936aef1 commit 733b664
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion doc/annotation_creation.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ semehr_annotate.sh -i anon_dir/ -o annot_dir/

## DICOM SR annotation

This is simlar to Standalone document annotation but with a preceding
This is similar to Standalone document annotation but with a preceding
step of extracting the text from a DICOM file. Also supported is
extracting the text from a MongoDB database (where the tags are stored
in SMI format).
Expand Down
4 changes: 2 additions & 2 deletions doc/annotation_database.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Pass = 'semehr'
DatabaseName = 'semehr'
Schema = 'semehr'
Table = 'semehr_results'
# Connecto to database
# Connect to database
pgConnection = psycopg2.connect(host=Host, user=User, password=Pass, dbname=DatabaseName)
# Search for all documents having an annotation where featurename = "cui" featureval = "C0175252"
query_obj = [ { featurename: featureval, 'Negation': 'Affirmed' } ]
Expand Down Expand Up @@ -280,7 +280,7 @@ but is indexed as a PostgreSQL date so it can be searched.
The annotations array has elements like this:
* `start`, `end`, the character offsets into `redacted_text`
* `str`, the original text string
* `id`, an indentifier for this annotation
* `id`, an identifier for this annotation
* `negation`, whether affirmed or negated
* `temporality`, whether recent or historical
* `experiencer`, whether the patient or other
Expand Down
2 changes: 1 addition & 1 deletion doc/anonymisation.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Rule document structure
```

The `general data structure` of an atom rule.
```javscript
```javascript

"RULE_NAME": {
"pattern": "REGULAR_EXPRESSION_(WITH_GROUPS)",
Expand Down
4 changes: 2 additions & 2 deletions doc/tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ Pass = 'semehr'
DatabaseName = 'semehr'
Schema = 'semehr'
Table = 'semehr_results'
# Connecto to database
# Connect to database
pgConnection = psycopg2.connect(host=Host, user=User, password=Pass, dbname=DatabaseName)
# Search for all documents having an annotation where featurename = "cui" featureval = "C0175252"
query_obj = [ { featurename: featureval, 'Negation': 'Affirmed' } ]
Expand Down Expand Up @@ -493,7 +493,7 @@ but is indexed as a PostgreSQL date so it can be searched.
The annotations array has elements like this:
* `start`, `end`, the character offsets into `redacted_text`
* `str`, the original text string
* `id`, an indentifier for this annotation
* `id`, an identifier for this annotation
* `negation`, whether affirmed or negated
* `temporality`, whether recent or historical
* `experiencer`, whether the patient or other
Expand Down
2 changes: 1 addition & 1 deletion doc/umls_metathesaurus.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ snomed|cui

Describes a Semantic Type. The identifier TUI is a member of a group of similar
types tuigroup, and the group has a label tuigrouplabel. This is used to find out
if a concept is related to other concepts that also share a simlar Semantic Type,
if a concept is related to other concepts that also share a similar Semantic Type,
i.e. their types are both members of the same Semantic Group.

```
Expand Down
2 changes: 1 addition & 1 deletion src/applications/semehr_anon.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# so use the -a (--all) option to write all the others too.
# To anonymise *DICOM* files you need CTP_SRAnonTool.sh
# (which uses CTP_DicomToText, this script, and CTP_XMLToDicom).
# NOTE: this script has superceded semehr_anon.sh.
# NOTE: this script has supersceded semehr_anon.sh.

import argparse, json, logging, re, sys, os, glob
from logging import handlers
Expand Down
2 changes: 1 addition & 1 deletion src/tools/semehr_anon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# To anonymise *DICOM* files you need CTP_SRAnonTool.sh.
# NOTE: this script uses several external programs:
# jq, CTP_PhiToXML.py, semehr_redact.py
# NOTE: this script has been superceded by semehr_anon.py.
# NOTE: this script has been supersceded by semehr_anon.py.

prog="$0"
usage="usage: $prog [-s semehr_dir] -i input -o output"
Expand Down
2 changes: 1 addition & 1 deletion src/tools/semehr_to_mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def mongo_query_feature(featurename, featureval):
# OLD x = mongoCursor = mongoCollection.find( { "Mention" : { "$elemMatch": { "features."+featurename : featureval } } } )
# NOW x = mongoCursor = mongoCollection.find( { "annotations" : { "$elemMatch": { featurename : featureval } } } )
# append .count() to get just the number of results
# append .explain() to get the query explaination
# append .explain() to get the query explanation
# append .explain()['executionStats']
# Query for annotations which have the feature AND are negated/affirmed
query_obj = { featurename : featureval, 'negation':'Negated' }
Expand Down

0 comments on commit 733b664

Please sign in to comment.