| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A collection of various discourse segmenters (with pre-trained models for German texts).
This python module currently comprises three discourse segmenters: edseg, bparseg, and mateseg.
Since the current model is a serialized file and, therefore, likely to be incompatible with future releases of `numpy`, we will probably remove the model files from future versions of this package, including source data instead and performing training during the installation.
To install this package from the PyPi index, run
pip install dsegmenterAlternatively, you can also install it directly from the source repository by executing:
git clone git@github.com:discourse-lab/DiscourseSegmenter.git
pip install -r DiscourseSegmenter/requirements.txt DiscourseSegmenter/ --userAfter installation, you can import the module in your python scripts (see an example here), e.g.:
from dsegmenter.bparseg import BparSegmenter
segmenter = BparSegmenter()or, alternatively, also use the delivered front-end script discourse_segmenter to process your parsed input data, e.g.:
discourse_segmenter bparseg segment DiscourseSegmenter/examples/bpar/maz-8727.exb.bparNote that this script requires two mandatory arguments: the type of the segmenter to use (bparseg in the above case) and the operation to perform (which are specific to each segmenter).
Intrinsic evaluation scores of the machine learning models on the predicted vectors will be printed when training and evaluating a segmentation model.
Extrinsic evaluation scores on the predicted segmentation trees can be calculated with the evaluation script.
evaluation {FOLDER:TRUE} {FOLDER:PRED}Note, that the script internally calls the DKpro agreement library, which requires Java 8.
| Back | FazBrowse Home | New Git URL |