Add langid to requirements and clarification to readme

This commit is contained in:
AuroraWright
2024-02-08 19:56:02 +01:00
parent 7951596ee3
commit 7fc7b497ee
4 changed files with 5 additions and 2 deletions

View File

@@ -19,7 +19,6 @@ from PIL import UnidentifiedImageError
from loguru import logger
from pynput import keyboard
from notifypy import Notify
from pysbd import Segmenter
import inspect
from owocr.ocr import *
@@ -125,6 +124,7 @@ class TextFiltering:
accurate_filtering = False
def __init__(self):
from pysbd import Segmenter
self.segmenter = Segmenter(language='ja', clean=True)
try:
from transformers import pipeline, AutoTokenizer