Skip to content

Commit

Permalink
Merge pull request martinakaduc#7 from nhatkhangcs/Intergration-Proje…
Browse files Browse the repository at this point in the history
…ct-231

[PI-231] APIs updated
  • Loading branch information
martinakaduc authored Dec 31, 2023
2 parents d2f2f63 + b306750 commit 657a509
Show file tree
Hide file tree
Showing 79 changed files with 2,244 additions and 577,028 deletions.
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#data
**/.env/
pretrained
pretrained/*
__pycache__
.idea
*/.idea
Expand All @@ -12,10 +12,9 @@ data/cache
.DS_Store
khangEnv/
TTS/
testvncore/
virrosluo/
app.py
README.md
logging/
MyVenv/
TTS/
.vscode
1 change: 1 addition & 0 deletions AffineTransformer.ipynb

Large diffs are not rendered by default.

8 changes: 0 additions & 8 deletions GraphTranslation/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,4 @@ __pycache__
.cache
logs
data/cache
data/result
.idea
__pycache__
*/__pycache__
*/*/__pycache__
.cache
logs
data/cache
data/result
4 changes: 2 additions & 2 deletions GraphTranslation/common/languages.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

class Languages:
SRC = "BA"
DST = "VI"
SRC = "VI"
DST = "BA"
27 changes: 19 additions & 8 deletions GraphTranslation/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,38 @@ class Config(metaclass=Singleton):
# KonTum
KonTum = "KonTum"

dst_words_paths = "dictionary/dict.vi"
src_words_paths = "dictionary/dict.ba"
dst_words_paths = "dictionary/dict.ba"
src_words_paths = "dictionary/dict.vi"

src_monolingual_paths = [
"parallel_corpus/train.ba", "parallel_corpus/valid.ba"]
dst_monolingual_paths = [
"parallel_corpus/train.vi", "parallel_corpus/valid.vi"]
parallel_paths = [("parallel_corpus/train.ba", "parallel_corpus/train.vi"),
("parallel_corpus/valid.ba", "parallel_corpus/valid.vi"),
dst_monolingual_paths = [
"parallel_corpus/train.ba", "parallel_corpus/valid.ba"]

src_mono_test_paths = ["parallel_corpus/test.vi"]
dst_mono_test_paths = ["parallel_corpus/test.ba"]

parallel_paths = [("parallel_corpus/train.vi", "parallel_corpus/train.ba"),
("parallel_corpus/valid.vi", "parallel_corpus/valid.ba"),
("dictionary/dict.vi", "dictionary/dict.ba")]

src_custom_ner_path = "GraphTranslation/data/custom_ner/vi_ner.json"
dst_custom_ner_path = "GraphTranslation/data/custom_ner/ba_ner.json"

# ----------------------------------------- #

src_syn_path = "data/synonyms/vi_syn_data_1.json"
dst_syn_path = None
src_custom_ner_path = "GraphTranslation/data/custom_ner/ba_ner.json"
dst_custom_ner_path = "GraphTranslation/data/custom_ner/vi_ner.json"

graph_cache_path = "data/cache/graph.json"
graph_cache_path_1 = "data/cache/graph_1.json"
activate_path = "data/cache/activation.txt"
logging_folder = "logs"
# vncorenlp_host = "http://172.28.0.23"

# ----------------------------------------- #


vncorenlp_host = "http://localhost"
vncorenlp_port = 9000
cache_size = 10000
Expand Down
Loading

0 comments on commit 657a509

Please sign in to comment.