hctilg / finglish
This library provides a Finglish-to-Persian convertor.
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 14
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/hctilg/finglish
Requires
- php: >=5.4.0
README
This library provides a Finglish-to-Persian convertor.
The return value is a list of possibilities, each with a confidence value in the [0.0, 1.0] range.
<?php // checking the exists Library. if (!file_exists("finglish.php")) { copy('https://raw.githubusercontent.com/hctilg/finglish/main/index.php', 'finglish.php'); } // require Library. require_once('finglish.php'); $model = new Finglish(); var_dump( $model("aseman abi") ); // "آسمان آبی"