Issue #34. Semantic kernel summaries plugin fails to preserve the original language of the text #35
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
locale
parameter within theconfig.json
file.locale
setting into theskprompt.txt
file to specified the desired language for the generated summary.Tests
Request a summary of a text, specifying the locale as 'es-ES', 'en-US', or leaving it unspecified (default is 'en').
Test data
Lovelace fue la única hija legítima del poeta Lord Byron y Anna Isabella Noel Byron. Byron se separó de su esposa un mes después del nacimiento de Ada y dejó Inglaterra para siempre cuatro meses después. Conmemoró la despedida en un poema que comienza: «¿Es tu rostro como el de tu madre, mi bella hija? ¡ADA! Hija única de mi casa y mi corazón». Murió en la Guerra de independencia de Grecia cuando Ada tenía ocho años.
Dedujo y previó la capacidad de los ordenadores para ir más allá de los simples cálculos de números, mientras que otros, incluido el propio Babbage, se centraron únicamente en estas capacidades.
Su posición social y su educación la llevaron a conocer a científicos importantes como Andrew Crosse, sir David Brewster, Charles Wheatstone, Michael Faraday y al novelista Charles Dickens, relaciones que aprovechó para llegar más lejos en su educación. Entre estas relaciones se encuentra Mary Somerville, que fue su tutora durante un tiempo, además de amiga y estímulo intelectual. Ada Byron se refería a sí misma como una científica poetisa y como analista (y metafísica).
Test result with locale 'es-ES'
Augusta Ada King, condesa de Lovelace, fue una matemática y escritora británica conocida por su trabajo en la máquina analítica de Charles Babbage. Fue la primera en reconocer las aplicaciones más allá del cálculo puro y publicó el primer algoritmo destinado a ser procesado por una máquina, convirtiéndose en la primera programadora de ordenadores. Lovelace era la única hija legítima del poeta Lord Byron y Anna Isabella Noel Byron. Aunque su padre se separó de su madre poco después de su nacimiento y murió cuando ella tenía ocho años, su posición social y educación le permitieron relacionarse con científicos importantes y ampliar su educación. Ada Byron se refería a sí misma como una científica poetisa y como analista.
Test result with locale 'en-US'
Augusta Ada King, Countess of Lovelace, known as Ada Lovelace, was a British mathematician and writer. She is famous for her work on Charles Babbage's general-purpose mechanical computer, the Analytical Engine. Lovelace was the first to recognize that the machine had applications beyond pure calculation and published what is now recognized as the first algorithm intended to be processed by a machine, making her the first computer programmer. She was the only legitimate daughter of poet Lord Byron and Anna Isabella Noel Byron. Byron separated from his wife a month after Ada's birth and left England forever four months later. He commemorated the farewell in a poem that begins: "Is thy face like thy mother's, my beautiful child? ADA! Sole daughter of my house and heart." She died in the Greek War of Independence when Ada was eight years old. Lovelace deduced and predicted the capabilities of computers to go beyond simple number calculations, while others, including Babbage himself, focused solely on these capabilities. Her social position and education allowed her to meet important scientists such as Andrew Crosse, Sir David Brewster, Charles Wheatstone, Michael Faraday, and novelist Charles Dickens, relationships she used to further her education. One of these relationships was with Mary Somerville, who was her tutor for a time, as well as a friend and intellectual stimulus. Ada Byron referred to herself as a scientific poet and as an analyst (and metaphysician).
Test result without locale
Augusta Ada King, Countess of Lovelace, also known as Ada Lovelace, was a British mathematician and writer. She is best known for her work on Charles Babbage's general-purpose mechanical computer, the Analytical Engine. Lovelace was the first to recognize that the machine had applications beyond pure calculation and is considered the world's first computer programmer for publishing the first algorithm intended to be processed by a machine. She was the only legitimate daughter of poet Lord Byron and Anna Isabella Noel Byron. Lovelace deduced and predicted the capabilities of computers to go beyond simple number calculations, while others, including Babbage himself, focused solely on these capabilities. Her social position and education allowed her to meet important scientists such as Andrew Crosse, Sir David Brewster, Charles Wheatstone, Michael Faraday, and novelist Charles Dickens, relationships she used to further her education. One of these relationships was with Mary Somerville, who was her tutor and intellectual stimulus. Ada Byron referred to herself as a scientific poet and as an analyst (and metaphysician).