edsnlp.pipelines.core.endlines.functional
_get_label(prediction)
Returns the label for the prediction PREDICTED_END_LINE
| PARAMETER | DESCRIPTION |
|---|---|
prediction |
value of
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
str
|
Label for |
Source code in edsnlp/pipelines/core/endlines/functional.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | |
build_path(file, relative_path)
Function to build an absolut path.
| PARAMETER | DESCRIPTION |
|---|---|
file |
|
relative_path |
relative path from the main file to the desired output
|
| RETURNS | DESCRIPTION |
|---|---|
path
|
Source code in edsnlp/pipelines/core/endlines/functional.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | |
_convert_series_to_array(s)
Converts pandas series of n elements to an array of shape (n,1).
| PARAMETER | DESCRIPTION |
|---|---|
s |
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
np.ndarray
|
Source code in edsnlp/pipelines/core/endlines/functional.py
50 51 52 53 54 55 56 57 58 59 60 61 62 | |