hctilg / finglish
This library provides a Finglish-to-Persian convertor.
v1.1
2024-05-18 19:56 UTC
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") ); // "آسمان آبی"