Renard::Block::NLP - Natural language processing for English
version 0.001
fun apply_sentence_offsets_to_blocks( (InstanceOf['String::Tagged']) $text )
Retrieves the sentence offsets for each part of the $text string that has been tagged as a block and apply a sentence tag to each sentence.
$text
block
sentence
fun _get_offsets( $text )
This uses Lingua::EN::Sentence internally to determine the location of each sentence.
Returns an ArrayRef of ArrayRefs where the first item is the starting index and the second is the ending index of each sentence in $text.
fun preprocess_for_tts( $text )
Preprocess $text by using a number of substitutions for common abbreviations so that a speech synthesis engine can read the expanded versions.
Returns a Str with the preprocessed text.
Str
Repository information
Project Renard
This software is copyright (c) 2017 by Project Renard.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Renard::Block::NLP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Renard::Block::NLP
CPAN shell
perl -MCPAN -e shell install Renard::Block::NLP
For more information on module installation, please visit the detailed CPAN module installation guide.