NLPAlhuzali commited on
Commit
c3efaa4
Β·
verified Β·
1 Parent(s): f81786c

asafaya/bert-base-arabic Model usage

Browse files
Files changed (1) hide show
  1. models/space_classify.py +4 -4
models/space_classify.py CHANGED
@@ -10,16 +10,16 @@ def classifyA(text):
10
  """
11
  classification = pipeline(
12
  task="text-classification",
13
- model="Hashuz/AS_MentalQAU",
14
  return_all_scores=True
15
  )
16
 
17
  result = []
18
  # Define mapping dictionary
19
  mapping = {
20
- 'info': 'ΨͺΩ‚Ψ―ΩŠΩ… Ω…ΨΉΩ„ΩˆΩ…Ψ©',
21
- 'guid': 'ΨͺΩˆΨ¬ΩŠΩ‡ أو Ψ§Ψ±Ψ΄Ψ§Ψ―',
22
- 'support': 'Ψ―ΨΉΩ… Ω†ΩΨ³ΩŠ'
23
  }
24
 
25
  output = classification(text)
 
10
  """
11
  classification = pipeline(
12
  task="text-classification",
13
+ model="asafaya/bert-base-arabic",
14
  return_all_scores=True
15
  )
16
 
17
  result = []
18
  # Define mapping dictionary
19
  mapping = {
20
+ 'LABEL_0': 'ΨͺΩ‚Ψ―ΩŠΩ… Ω…ΨΉΩ„ΩˆΩ…Ψ©',
21
+ 'LABEL_1': 'ΨͺΩˆΨ¬ΩŠΩ‡ أو Ψ§Ψ±Ψ΄Ψ§Ψ―',
22
+ 'LABEL_2': 'Ψ―ΨΉΩ… Ω†ΩΨ³ΩŠ'
23
  }
24
 
25
  output = classification(text)