medcat.components.contracting_utils
Classes:
Functions:
-
iter_relevant_parts– -
spy_token_class– -
wrap_relevant_parts– -
wrap_relevant_persistant_parts– -
wrap_relevant_token_cls–
Attributes:
-
logger–
AccessType
ContractViolation
Bases: Exception
WrappedMember
WrappedMember(part: Any, member_name: str, feedback: list[Any], access_type: AccessType)
Attributes:
-
access_type– -
feedback– -
member_name– -
part–
Source code in medcat/medcat/components/contracting_utils.py
36 37 38 39 40 41 42 43 44 45 46 47 48 | |
access_type
instance-attribute
access_type = access_type
feedback
instance-attribute
feedback = feedback
member_name
instance-attribute
member_name = member_name
part
instance-attribute
part = part
iter_relevant_parts
iter_relevant_parts(doc: MutableDocument, path: str) -> Iterator[Any]
Source code in medcat/medcat/components/contracting_utils.py
24 25 26 27 28 29 30 31 | |
spy_token_class
spy_token_class(token_cls: Type, watched_attr: str, access_type: AccessType)
Source code in medcat/medcat/components/contracting_utils.py
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | |
wrap_relevant_parts
wrap_relevant_parts(doc: MutableDocument, path: str, access_type: AccessType = READ)
Source code in medcat/medcat/components/contracting_utils.py
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | |
wrap_relevant_persistant_parts
wrap_relevant_persistant_parts(doc: MutableDocument, path: str, access_type: AccessType = READ)
Source code in medcat/medcat/components/contracting_utils.py
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 | |
wrap_relevant_token_cls
wrap_relevant_token_cls(doc: MutableDocument, path: str, access_type: AccessType = READ)
Source code in medcat/medcat/components/contracting_utils.py
152 153 154 155 156 157 158 159 160 161 162 163 | |