0.1.16 • Published 4 years ago

car-registration-distance v0.1.16

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

ocr-post-process

use levenshtein-distance to correct spelling of some data in result

npm install car-registration-distance
import { improveResult } from 'car-registration-distance';
const a = {
    result: {
        vehicle_license_province: 'กรุงเทพมคร',
        vehicle_color: 'นำเงิน',
        vehicle_brand: 'TO YOTA',
        vehicle_engine_brand: 'TOYO',
        vehicle_fuel_type: 'เบนซ',
    },
};
const b = improveResult(r1);
console.log(b);
// expect b as below
// {
//     result: {
//         vehicle_license_province: 'กรุงเทพมหานคร',
//         vehicle_color: 'น้ำเงิน',
//         vehicle_brand: 'TOYOTA',
//         vehicle_engine_brand: 'TOYOTA',
//         vehicle_fuel_type: 'เบนซิน',
//     },
// };
0.1.16

4 years ago

0.1.14

4 years ago

0.1.15

4 years ago

0.1.12

4 years ago

0.1.13

4 years ago

0.1.10

4 years ago

0.1.11

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago