/sentences-sources

Segment sentences from text and pair them with a link in jsonlines

Primary LanguagePythonMIT LicenseMIT

sentences-sources

Segment sentences from text and pair them with a link in jsonlines

Instillation

pip install -r requirements.txt

Usage

usage: sentences_sources.py [-h] [--link LINK] [--cite CITE] [--gpu] input output

positional arguments:
  input        text file input
  output       output file

optional arguments:
  -h, --help   show this help message and exit
  --link LINK  link to document
  --cite CITE  text citation
  --gpu        enable gpu