Merge pull request #5141 from tink2123/requirments

mv fasttext for requirements
This commit is contained in:
zhoujun 2021-12-31 01:52:17 -06:00 committed by GitHub
commit 12e128f9fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -23,7 +23,6 @@ import sys
import six import six
import cv2 import cv2
import numpy as np import numpy as np
import fasttext
class DecodeImage(object): class DecodeImage(object):
@ -136,6 +135,7 @@ class ToCHWImage(object):
class Fasttext(object): class Fasttext(object):
def __init__(self, path="None", **kwargs): def __init__(self, path="None", **kwargs):
import fasttext
self.fast_model = fasttext.load_model(path) self.fast_model = fasttext.load_model(path)
def __call__(self, data): def __call__(self, data):

View File

@ -12,5 +12,4 @@ cython
lxml lxml
premailer premailer
openpyxl openpyxl
fasttext==0.9.1
paddlenlp>=2.2.1 paddlenlp>=2.2.1