# fastwer **Repository Path**: Soul_Code/fastwer ## Basic Information - **Project Name**: fastwer - **Description**: A PyPI package for fast word/character error rate (WER/CER) calculation - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-07-28 - **Last Updated**: 2025-07-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README FastWER ==== A PyPI package for fast word/character error rate (WER/CER) calculation * fast (cpp implementation) * sentence-level and corpus-level WER/CER scores # Installation ```bash pip install pybind11 fastwer ``` # Example ```python import fastwer hypo = ['This is an example .', 'This is another example .'] ref = ['This is the example :)', 'That is the example .'] # Corpus-Level WER: 40.0 fastwer.score(hypo, ref) # Corpus-Level CER: 25.5814 fastwer.score(hypo, ref, char_level=True) # Sentence-Level WER: 40.0 fastwer.score_sent(hypo[0], ref[0]) # Sentence-Level CER: 22.7273 fastwer.score_sent(hypo[0], ref[0], char_level=True) ``` # Contact Changhan Wang (wangchanghan@gmail.com)