ahmad21omar commited on
Commit
221d7c1
·
1 Parent(s): 8e97619
Files changed (1) hide show
  1. app.py +14 -25
app.py CHANGED
@@ -1,19 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
- """Kopie von HW1 (more instructed).ipynb
3
-
4
- Automatically generated by Colab.
5
-
6
- Original file is located at
7
- https://colab.research.google.com/drive/1vFJ6AROcCYNkZRIxpyHs9T1sf-bdB_jW
8
- """
9
-
10
- """## Pre-requisite code
11
-
12
- The code within this section will be used in the tasks. Please do not change these code lines.
13
-
14
- ### SciQ loading and counting
15
- """
16
-
17
  from dataclasses import dataclass
18
  import pickle
19
  import os
@@ -26,12 +10,8 @@ import nltk
26
  nltk.download("stopwords", quiet=True)
27
  from nltk.corpus import stopwords as nltk_stopwords
28
  from nlp4web_codebase.ir.data_loaders.sciq import load_sciq
29
-
30
-
31
  import gradio as gr
32
  from typing import TypedDict
33
-
34
-
35
  from __future__ import annotations
36
  from dataclasses import asdict, dataclass
37
  import math
@@ -39,21 +19,30 @@ import os
39
  from typing import Iterable, List, Optional, Type
40
  import tqdm
41
  from nlp4web_codebase.ir.data_loaders.dm import Document
42
-
43
  from nlp4web_codebase.ir.models import BaseRetriever
44
  from typing import Type
45
  from abc import abstractmethod
46
-
47
-
48
  from nlp4web_codebase.ir.data_loaders import Split
49
  import pytrec_eval
50
  import numpy as np
 
 
51
 
 
 
52
 
53
- from matplotlib import pyplot as plt
54
 
55
- from scipy.sparse._csc import csc_matrix
 
 
 
 
56
 
 
 
 
 
57
 
58
 
59
  LANGUAGE = "english"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  from dataclasses import dataclass
2
  import pickle
3
  import os
 
10
  nltk.download("stopwords", quiet=True)
11
  from nltk.corpus import stopwords as nltk_stopwords
12
  from nlp4web_codebase.ir.data_loaders.sciq import load_sciq
 
 
13
  import gradio as gr
14
  from typing import TypedDict
 
 
15
  from __future__ import annotations
16
  from dataclasses import asdict, dataclass
17
  import math
 
19
  from typing import Iterable, List, Optional, Type
20
  import tqdm
21
  from nlp4web_codebase.ir.data_loaders.dm import Document
 
22
  from nlp4web_codebase.ir.models import BaseRetriever
23
  from typing import Type
24
  from abc import abstractmethod
 
 
25
  from nlp4web_codebase.ir.data_loaders import Split
26
  import pytrec_eval
27
  import numpy as np
28
+ from matplotlib import pyplot as plt
29
+ from scipy.sparse._csc import csc_matrix
30
 
31
+ # -*- coding: utf-8 -*-
32
+ """Kopie von HW1 (more instructed).ipynb
33
 
34
+ Automatically generated by Colab.
35
 
36
+ Original file is located at
37
+ https://colab.research.google.com/drive/1vFJ6AROcCYNkZRIxpyHs9T1sf-bdB_jW
38
+ """
39
+
40
+ """## Pre-requisite code
41
 
42
+ The code within this section will be used in the tasks. Please do not change these code lines.
43
+
44
+ ### SciQ loading and counting
45
+ """
46
 
47
 
48
  LANGUAGE = "english"