unijoh commited on
Commit
af92582
·
verified ·
1 Parent(s): 5bed2db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -34,19 +34,19 @@ features_to_tag, VEC_LEN = load_tag_mappings(TAGS_FILEPATH)
34
 
35
  # Use the SAME intervals as your demo.py (keep these consistent!)
36
  intervals = (
37
- (15, 28),
38
- (29, 32),
39
- (33, 35),
40
- (36, 40),
41
- (41, 42),
42
- (43, 44),
43
- (45, 49),
44
- (50, 52),
45
- (53, 58),
46
- (59, 61),
47
- (62, 64),
48
- (65, 68),
49
- (69, 70),
50
  )
51
 
52
  def vector_to_tag(vec):
 
34
 
35
  # Use the SAME intervals as your demo.py (keep these consistent!)
36
  intervals = (
37
+ (15, 29), # Subcategories (D,B,E,I,P,Q,N,G,R, X, S,C,O,T,s)
38
+ (30, 33), # Gender (M,F,N,g)
39
+ (34, 36), # Number (S,P,n)
40
+ (37, 41), # Case (N,A,D,G,c)
41
+ (42, 43), # Article/No-Article (Article,a)
42
+ (44, 45), # Proper/Not Proper Noun (Proper,r)
43
+ (46, 50), # Degree (P,C,S,A,d)
44
+ (51, 53), # Declension (S,W,e)
45
+ (54, 60), # Mood (I,M,N,S,P,E,U)
46
+ (61, 63), # Voice (A,M,v)
47
+ (64, 66), # Tense (P,A,t)
48
+ (67, 70), # Person (1,2,3,p)
49
+ (71, 72), # Definiteness (D,I)
50
  )
51
 
52
  def vector_to_tag(vec):