bioc_formatter
autocorpus.bioc_formatter
¤
Top-level BioC collection builder script.
Classes¤
Functions¤
get_formatted_bioc_collection(main_text, file_path)
¤
Constructs a BioC collection from input document-level data.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
main_text
|
dict[str, Any]
|
Input document-level data. |
required |
file_path
|
Path
|
Path to the input file. |
required |
Returns:
Type | Description |
---|---|
BioCCollection
|
BioC collection |
Source code in autocorpus/bioc_formatter.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
get_formatted_bioc_document(main_text, file_path)
¤
Constructs the BioC document template using the provided data store.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
main_text
|
dict[str, Any]
|
Input document-level data. |
required |
file_path
|
Path
|
Path to the input file. |
required |
Returns:
Type | Description |
---|---|
BioCDocument
|
BioC document complete populated with passages. |
Source code in autocorpus/bioc_formatter.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
|