How singhv04/library-codemix-dialogue-dataset-generation-and-dialogue-act-classification works
Main Components
• Input Data Source: Both approaches start with a key Excel file (kitni_m.xlsx) that supplies dialogue data.
• External Tools & Libraries:
– ISC Tokenizer (shared by both approaches)
– For Approach 2, additional tools such as ISC Tagger, language detection (langid.py), and translation (googletrans) are used.
– Python 3.6 environment (Anaconda: Spyder) with libraries such as openpyxl and xlwt for reading/writing Excel files.
• Processing Pipelines:
– Approach 1:
▫ A simpler pipeline that reads the input file, applies tokenization, processes the dialogue data, and outputs results in an Excel and a Word document (RESULT.docx).
▫ Files like “m_kitni_info_asked.py” and “m_kitni_info_provided.py” indicate distinct modules for handling “asked” vs. “provided” information.
– Approach 2:
▫ A more extensive pipeline that, in addition to tokenization, includes feature extraction, language detection, translation, and classification.
▫ Multiple Python scripts progressing through tokenization, extracting bag-of-words features (bag_of_words_3.xlsx), and building the model (SVM via files like first_30_data_svm_6.py, svm_whole_dataset_5.py, and testing.py).
▫ It also uses additional Excel files to stage data (e.g., dataset_eng_1.xlsx, dataset_hin.xlsx, feature_extracted_2.xlsx).
• Output Files: Each approach creates different output files (excel, docx, test results printed to console) that need to be represented.
Relationships and Interactions
– The Input (kitni_m.xlsx) feeds the processing pipelines.
– For both approaches, a common shared external dependency (ISC Tokenizer) is involved early in the pipeline.
– In Approach 2, after initial tokenization, the data flows into sequential modules: feature extraction, language detection and translation, followed by machine learning classification (SVM).
– For Approach 1, data is processed, tokenized, and then output as a spreadsheet and documented in a Word file with the results.
Architectural Patterns and Design Principles
• Separation of Concerns: Notice that the project is divided into two independent “approaches” or pipelines that each encapsulate a specific method of data processing.
• Data Transformation Pipeline: Both pipelines follow a sequential set of transformation steps (read input → tokenize → process features → output) that are characteristic of data processing pipelines.
• Reusability: The external libraries (like ISC Tokenizer) are shared, which can be highlighted as a reusable middleware component.
Relevant Technologies and Frameworks
• Programming language: Python 3.6 on the Anaconda distribution (Spyder IDE).
• External dependencies: ISC Tokenizer, ISC Tagger, langid.py, and googletrans.
• Libraries for file operations: openpyxl and xlwt.
• Machine Learning Elements: SVM classifier components in Approach 2.