madhavkotecha commited on
Commit
85d45cc
·
verified ·
1 Parent(s): 66e18d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -42,7 +42,8 @@ class CRF_POS_Tagger:
42
  self.X_test = self.X[self.split:]
43
  self.y_test = self.y[self.split:]
44
  self.crf_model = sklearn_crfsuite.CRF(algorithm='lbfgs', c1=0.1, c2=0.1, max_iterations=100, all_possible_transitions=True)
45
- self.train() if train
 
46
 
47
  def word_splitter(self, word):
48
  prefix = ""
 
42
  self.X_test = self.X[self.split:]
43
  self.y_test = self.y[self.split:]
44
  self.crf_model = sklearn_crfsuite.CRF(algorithm='lbfgs', c1=0.1, c2=0.1, max_iterations=100, all_possible_transitions=True)
45
+ if train:
46
+ self.train()
47
 
48
  def word_splitter(self, word):
49
  prefix = ""