kazu.steps.ner.entity_post_processing¶
Classes
Some simple rules to split non-contiguous entities into component entities. |
|
split a string of numerically incrementing parts: |
- class kazu.steps.ner.entity_post_processing.NonContiguousEntitySplitter[source]¶
Bases:
object
Some simple rules to split non-contiguous entities into component entities.
- class kazu.steps.ner.entity_post_processing.SplitOnConjunctionPattern[source]¶
Bases:
object
- class kazu.steps.ner.entity_post_processing.SplitOnNumericalListPatternWithPrefix[source]¶
Bases:
object
split a string of numerically incrementing parts:
splitter = SplitOnNumericalListPatternWithPrefix() ent = Entity.load_contiguous_entity( start=0, end=8, namespace="test", entity_class="gene", match="BRCA1/2/3" ) print(splitter(ent, "BRCA1/2/3 are oncogenes"))
[BRCA1:gene:test:0:5, BRCA2:gene:test:0:7, BRCA3:gene:test:0:9]