myZagar / README.txt
ye-nlp's picture
added shell scripts etc.
0d84e21
# For your information
Written by Ye Kyaw Thu, LU Lab., Myanmar
Last updated: 31 Jan 2024
Filename: exp.sh
This shell script builds all language profiles and performs detection. It demonstrates how to build and detect languages using all the detection approaches I have implemented.
Note: Completing this process will take some time.
## Approach: Character+Syllable Frequency
build_profile_with_char_syl_freq.sh
detect_with_char_syl_freq.sh
## Approach: Character+Syllable Ngram with Bayes
build_profile_with_char_syl_ngram.sh
detect_with_char_syl_ngram.sh
## Approach: Word2Vec, FastText Embedding
build_profile_with_embeddings.sh
detect_with_embedding.sh
## Approach: FastText Classifier
train_with_fasttext_classifier.sh
detect_with_fasttext.sh
## Approach: Neural Network Modeling
train_with_nerual.sh
detect_with_neural.sh
## Folder Information
(base) ye@lst-gpu-3090:~/exp/myNLP/lang_detect$ tree . -d -L 1
.
β”œβ”€β”€ char_syl_freq
β”œβ”€β”€ char_syl_ngram
β”œβ”€β”€ data
β”œβ”€β”€ embedding
β”œβ”€β”€ fasttext_class
β”œβ”€β”€ log
β”œβ”€β”€ neural
β”œβ”€β”€ preprocess
β”œβ”€β”€ profile
β”œβ”€β”€ tmp
└── tool
11 directories
Here,
- The 'char_syl_freq/' folder contains the 'char_syl_freq' module.
- The 'char_syl_ngram/' folder contains the 'char_syl_ngram' module.
- The 'data/' folder holds the data used for building Myanmar language profiles and for detection.
- The 'embedding/' folder includes modules for word embeddings (e.g., word2vec, fasttext).
- The 'fasttext_class' folder contains the FastText classification module.
- The 'log/' folder stores log files for building and detecting using all six approaches.
- The 'neural/' folder contains the neural network-based language detection module.
- The 'preprocess/' folder includes various preprocessing scripts.
- The 'profile/' folder holds built language profiles for Bamar (Myanmar language), Beik, Dawei, Mon, Pao, Po Kayin, Rakhine, Sgaw Kayin, and Shan.