suyash2102 commited on
Commit
edf6aaa
1 Parent(s): b93626f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +16 -7
README.md CHANGED
@@ -29,27 +29,30 @@ model-index:
29
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
30
  should probably proofread and complete it, then remove this comment. -->
31
 
 
 
 
 
 
32
  # model-en-to-fr-1
33
 
34
- This model is a fine-tuned version of [Helsinki-NLP/opus-mt-en-fr](https://huggingface.co/Helsinki-NLP/opus-mt-en-fr) on the kde4 dataset.
35
  It achieves the following results on the evaluation set:
36
  - Loss: 0.8447
37
  - Bleu: 53.4267
38
 
39
  ## Model description
40
 
41
- More information needed
42
-
43
- ## Intended uses & limitations
44
-
45
- More information needed
46
 
47
  ## Training and evaluation data
48
 
49
- More information needed
50
 
51
  ## Training procedure
52
 
 
 
53
  ### Training hyperparameters
54
 
55
  The following hyperparameters were used during training:
@@ -63,7 +66,13 @@ The following hyperparameters were used during training:
63
 
64
  ### Training results
65
 
 
 
 
 
 
66
 
 
67
 
68
  ### Framework versions
69
 
 
29
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
30
  should probably proofread and complete it, then remove this comment. -->
31
 
32
+ # Introduction
33
+
34
+ I have made a working user interactive Gradio Language Translation model which translates any English sentence into French sentence. For this i have fine tuned a pre trained model which i have used from HuggingFace.
35
+ Make a local directory of this repo in your computer and then in your terminal switch to the directory of this repo on your computer and then just type python gradio_LT.py to start the user interface for translation.
36
+
37
  # model-en-to-fr-1
38
 
39
+ This model is a fine-tuned version of [Helsinki-NLP/opus-mt-en-fr](https://huggingface.co/Helsinki-NLP/opus-mt-en-fr) on the kde4 dataset. I have used this model to convert English sentence to French.
40
  It achieves the following results on the evaluation set:
41
  - Loss: 0.8447
42
  - Bleu: 53.4267
43
 
44
  ## Model description
45
 
46
+ I have used the inbuilt features of transformers to make this model. The model is made from AutoModelForSeq2SeqLM and i have tokenized the dataset accoding to the pre trained model.
 
 
 
 
47
 
48
  ## Training and evaluation data
49
 
50
+ I have used the Sacrebleu method to evaluate my model which is generally used in language translation. It compares the number of common words in predicted and correct output and then gives its correctness.
51
 
52
  ## Training procedure
53
 
54
+ I have used the Seq2SeqTrainer function to train my dataset over the pre trained model.The specific parameters are given below which i have used.
55
+
56
  ### Training hyperparameters
57
 
58
  The following hyperparameters were used during training:
 
66
 
67
  ### Training results
68
 
69
+ The model achieves the following results on the evaluation set:
70
+ - Loss: 0.8447
71
+ - Bleu: 53.4267
72
+
73
+ ### Gradio Interface
74
 
75
+ I have made a separate file gradio_LT.py. By running this file you will directly see a gradio user interface through which you translate sentences. The only prerequisite is that transformers, gradio, sentencepiece should be pre downloaded in your environment.
76
 
77
  ### Framework versions
78