Skip to content

Commit

Permalink
Fix and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
matin-ghorbani committed Mar 30, 2024
1 parent a62ec9f commit 0c34574
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
10 changes: 5 additions & 5 deletions session_61_assignment_7.11/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
</tr>
</tr>
<td>100d</td>
<td>...</td>
<td>...</td>
<td>...</td>
<td>...</td>
<td>...s</td>
<td>0.3991</td>
<td>0.9470</td>
<td>0.4769</td>
<td>0.8593</td>
<td>0.0993s</td>
</tr>
<tr>
<td>200d</td>
Expand Down
3 changes: 1 addition & 2 deletions session_61_assignment_7.11/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from argparse import ArgumentParser, BooleanOptionalAction

from text_classifier import EmojiTextClassifier
from tqdm import tqdm

args = ArgumentParser()
args.add_argument('--model', type=str,
Expand All @@ -25,7 +24,7 @@

if opt.infer:
start_time = time()
for i in tqdm(range(opt.n_infer)):
for i in range(opt.n_infer):
classifier.predict(opt.sentence)

duration = time() - start_time
Expand Down
2 changes: 1 addition & 1 deletion session_61_assignment_7.11/text_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def load_feature_vectors(self, file_path: str) -> None:
def sentence_to_feature_vectors_avg(self, sentence: str) -> np.ndarray[np.floating] | None:
sentence = sentence.lower()
words = sentence.strip().split(' ')
sum_vectors = np.zeros((50, ))
sum_vectors = np.zeros((self.dimension, ))

try:
for word in words:
Expand Down

0 comments on commit 0c34574

Please sign in to comment.