feat: adding dataset
This commit is contained in:
parent
3cf689159c
commit
011b22e262
Binary file not shown.
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 65 KiB |
File diff suppressed because one or more lines are too long
Binary file not shown.
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 54 KiB |
Binary file not shown.
|
@ -1,8 +1,8 @@
|
||||||
import json
|
import json
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import pickle
|
import pickle
|
||||||
from tensorflow.keras.models import load_model # type: ignore
|
from tensorflow.keras.models import load_model # type: ignore
|
||||||
from tensorflow.keras.preprocessing.sequence import pad_sequences # type: ignore
|
from tensorflow.keras.preprocessing.sequence import pad_sequences # type: ignore
|
||||||
import re
|
import re
|
||||||
|
|
||||||
# -----------------------------
|
# -----------------------------
|
||||||
|
@ -50,6 +50,6 @@ def predict_sentence(sentence: str) -> dict:
|
||||||
# 3. Demo
|
# 3. Demo
|
||||||
# -----------------------------
|
# -----------------------------
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
sample = "batu bata terbuat dari material tanah liat"
|
sample = "ngaben adalan acara pembakaran jenazah masyarakat suku bali"
|
||||||
result = predict_sentence(sample)
|
result = predict_sentence(sample)
|
||||||
print(json.dumps(result, ensure_ascii=False, indent=2))
|
print(json.dumps(result, ensure_ascii=False, indent=2))
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue