Update
Browse files
app.py
CHANGED
@@ -6,11 +6,13 @@ from flair.models import SequenceTagger
|
|
6 |
# Load the model
|
7 |
model = SequenceTagger.load("qanastek/pos-french")
|
8 |
|
9 |
-
def greet(
|
10 |
|
11 |
-
|
12 |
|
13 |
-
|
|
|
|
|
14 |
|
15 |
# predict tags
|
16 |
model.predict(sentence)
|
|
|
6 |
# Load the model
|
7 |
model = SequenceTagger.load("qanastek/pos-french")
|
8 |
|
9 |
+
def greet(content):
|
10 |
|
11 |
+
# George Washington est allé à Washington
|
12 |
|
13 |
+
# res = "Hello " + content + "!!"
|
14 |
+
|
15 |
+
sentence = Sentence(content)
|
16 |
|
17 |
# predict tags
|
18 |
model.predict(sentence)
|