Skip to content

Commit

Permalink
Update freenlpc.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelrhmanNile committed Sep 5, 2022
1 parent 1e1af1d commit f236482
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions freenlpc/freenlpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def classification(self, text: str, lables: list, multiclass: bool =True):
except requests.exceptions.HTTPError:
self.__init_api()

def classification2(self, text: str):
def classification2(self, text: str, lables: list, multiclass: bool =True):
"""perform classification on a piece of text.
Args:
Expand All @@ -127,7 +127,7 @@ def classification2(self, text: str):
while True:
try:
sleep(1)
response = self.__models[self.classification2.__name__].classification(text)
response = self.__models[self.classification2.__name__].classification(text, labels, multiclass)
result = []
for i in range(len(response['labels'])):
info = {}
Expand Down

0 comments on commit f236482

Please sign in to comment.