Spaces:
Sleeping
Sleeping
madhavkotecha
commited on
Update app.py
Browse files
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 |
-
|
|
|
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 = ""
|