Closed chayan-dhaddha closed 2 years ago
I am working on Hindi Language and have encoded successfully, but I cannot decode the sentence? After running the below the line, I am getting output same as one feed into it:
bpemb_hi.decode([" ▁होकर ▁अपने ▁मन ▁में ▁काम ▁किया ▁."]) output: ▁होकर ▁अपने ▁मन ▁में ▁काम ▁किया ▁.
Please guide me where am I doing wrong. Thanks in advance
the decode method expects a list of byte-pair symbols, so this should work:
bpemb_hi.decode(["▁होकर", "▁अपने", "▁मन", "▁में", "▁काम", "▁किया, "▁."])
I am working on Hindi Language and have encoded successfully, but I cannot decode the sentence? After running the below the line, I am getting output same as one feed into it:
bpemb_hi.decode([" ▁होकर ▁अपने ▁मन ▁में ▁काम ▁किया ▁."])
output: ▁होकर ▁अपने ▁मन ▁में ▁काम ▁किया ▁.
Please guide me where am I doing wrong. Thanks in advance