sastrawi/string-span

This package is abandoned and no longer maintained. No replacement package was suggested.

String span utility.

v1.0.2 2014-12-01 14:01 UTC

This package is not auto-updated.

Last update: 2020-11-09 08:17:42 UTC


README

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version Total Downloads

Sastrawi String Span adalah library span yang digunakan oleh library NLP (Natural Language Processing) Sastrawi lainnya. API yang digunakan terinspirasi oleh Apache NLP Span.

Cara Install

Sastrawi String Span dapat diinstall dengan Composer.

php composer.phar require sastrawi/string-span:~1

Penggunaan

<?php

// demo.php

// include composer autoloader
require_once __DIR__ . '/vendor/autoload.php';

// create span
$span = new \Sastrawi\String\Span\Span(0, 5);
$text = 'Saya belajar NLP Bahasa Indonesia.';

echo $span->getCoveredText($text) . "\n"; // Saya

Lisensi

Sastrawi String Span dirilis di bawah lisensi MIT License (MIT).