What NN architecture to predict fantasy character names based on description? The 2019 Stack Overflow Developer Survey Results Are InWhat tasks you train with one set of features and predict with another?What is the neural network architecture behind Facebook's Starspace model?NLP text autoencoder that generates text in poetic meter

Loose spokes after only a few rides

Is bread bad for ducks?

Can you cast a spell on someone in the Ethereal Plane, if you are on the Material Plane and have the True Seeing spell active?

Output the Arecibo Message

Pokemon Turn Based battle (Python)

Why are there uneven bright areas in this photo of black hole?

Why doesn't shell automatically fix "useless use of cat"?

Will it cause any balance problems to have PCs level up and gain the benefits of a long rest mid-fight?

Why don't hard Brexiteers insist on a hard border to prevent illegal immigration after Brexit?

How did passengers keep warm on sail ships?

Can we generate random numbers using irrational numbers like π and e?

How to charge AirPods to keep battery healthy?

How do I free up internal storage if I don't have any apps downloaded?

If my opponent casts Ultimate Price on my Phantasmal Bear, can I save it by casting Snap or Curfew?

What is this sharp, curved notch on my knife for?

How do you keep chess fun when your opponent constantly beats you?

How to quickly solve partial fractions equation?

What does Linus Torvalds mean when he says that Git "never ever" tracks a file?

Why isn't the circumferential light around the M87 black hole's event horizon symmetric?

What can I do if neighbor is blocking my solar panels intentionally

How to type a long/em dash `—`

Is it ok to offer lower paid work as a trial period before negotiating for a full-time job?

Button changing its text & action. Good or terrible?

Did any laptop computers have a built-in 5 1/4 inch floppy drive?



What NN architecture to predict fantasy character names based on description?



The 2019 Stack Overflow Developer Survey Results Are InWhat tasks you train with one set of features and predict with another?What is the neural network architecture behind Facebook's Starspace model?NLP text autoencoder that generates text in poetic meter










1












$begingroup$


I would like to build a neural network to predict a fantasy character name given a description.



Like 'Scar-faced long haired elf warrior' -> 'Glorfindel'



I have a dataset of about 12,000 fantasy names and description from various fantasy works. I want to be able to map the description to names. Names are not vocabulary words and I want to NN to be able to generate new names for new description.



I wanted to use something like Elmo to embed the description and the name which would then easily teach the NN to map one to another, but the problem I faced is how do I go back from an embedding vector to characters representing a word.










share|improve this question











$endgroup$











  • $begingroup$
    I learned a good analogy would be an image captioning model, where on the output instead of words you would be predicting characters. towardsdatascience.com/…
    $endgroup$
    – freediver
    Jan 16 at 19:24















1












$begingroup$


I would like to build a neural network to predict a fantasy character name given a description.



Like 'Scar-faced long haired elf warrior' -> 'Glorfindel'



I have a dataset of about 12,000 fantasy names and description from various fantasy works. I want to be able to map the description to names. Names are not vocabulary words and I want to NN to be able to generate new names for new description.



I wanted to use something like Elmo to embed the description and the name which would then easily teach the NN to map one to another, but the problem I faced is how do I go back from an embedding vector to characters representing a word.










share|improve this question











$endgroup$











  • $begingroup$
    I learned a good analogy would be an image captioning model, where on the output instead of words you would be predicting characters. towardsdatascience.com/…
    $endgroup$
    – freediver
    Jan 16 at 19:24













1












1








1





$begingroup$


I would like to build a neural network to predict a fantasy character name given a description.



Like 'Scar-faced long haired elf warrior' -> 'Glorfindel'



I have a dataset of about 12,000 fantasy names and description from various fantasy works. I want to be able to map the description to names. Names are not vocabulary words and I want to NN to be able to generate new names for new description.



I wanted to use something like Elmo to embed the description and the name which would then easily teach the NN to map one to another, but the problem I faced is how do I go back from an embedding vector to characters representing a word.










share|improve this question











$endgroup$




I would like to build a neural network to predict a fantasy character name given a description.



Like 'Scar-faced long haired elf warrior' -> 'Glorfindel'



I have a dataset of about 12,000 fantasy names and description from various fantasy works. I want to be able to map the description to names. Names are not vocabulary words and I want to NN to be able to generate new names for new description.



I wanted to use something like Elmo to embed the description and the name which would then easily teach the NN to map one to another, but the problem I faced is how do I go back from an embedding vector to characters representing a word.







generative-models embeddings text-generation






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 16 at 3:45







freediver

















asked Jan 16 at 3:25









freediverfreediver

112




112











  • $begingroup$
    I learned a good analogy would be an image captioning model, where on the output instead of words you would be predicting characters. towardsdatascience.com/…
    $endgroup$
    – freediver
    Jan 16 at 19:24
















  • $begingroup$
    I learned a good analogy would be an image captioning model, where on the output instead of words you would be predicting characters. towardsdatascience.com/…
    $endgroup$
    – freediver
    Jan 16 at 19:24















$begingroup$
I learned a good analogy would be an image captioning model, where on the output instead of words you would be predicting characters. towardsdatascience.com/…
$endgroup$
– freediver
Jan 16 at 19:24




$begingroup$
I learned a good analogy would be an image captioning model, where on the output instead of words you would be predicting characters. towardsdatascience.com/…
$endgroup$
– freediver
Jan 16 at 19:24










2 Answers
2






active

oldest

votes


















0












$begingroup$

First off, I think that since the goal of your model will be to generate new names based on a description, your model should work at a character-level and not word-level.



You can think of the level at which your model is working as the building blocks you are providing for it (it needs to learn them during training). These building blocks are than used for generation of new constructs. So if you want to construct new words (names) than you need to teach the model to understand the connection between the individual characters and the input description. Your model can deal with the input at a word-level but its output needs to be at character-level.



You can read more about it at: Besides Word Embedding, why you need to know Character Embedding?






share|improve this answer









$endgroup$












  • $begingroup$
    Thanks @Mark.F Do you have an example of an architecture that is taking words/vectors as input and generating characters on the output?
    $endgroup$
    – freediver
    Jan 16 at 18:49


















0












$begingroup$

Use char-rnn. I used it to make a Twitter bot, @peopledex, that generated Pokemon descriptions based on names, but you could easily reverse the fields.



Examples - the bit before the colon is the name (input), after is the description (output).



  • Dribbur: Thought for evolution, it seeks the coming of sprays. The area basisones from behind.

  • Convictur: It rests when it evolves into a hundred special magnetism. As a result, the magma courses through its body glows.

  • Litigant: It slicks virious trees and was reanimated from a fossil. It can compresse minute silk that was reanimated from the light

The descriptions don't make much sense, but with names that would be less of a problem. The nice thing is that working with fictional generation there's no wrong answers.






share|improve this answer









$endgroup$













    Your Answer





    StackExchange.ifUsing("editor", function ()
    return StackExchange.using("mathjaxEditing", function ()
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
    );
    );
    , "mathjax-editing");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "557"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f44068%2fwhat-nn-architecture-to-predict-fantasy-character-names-based-on-description%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0












    $begingroup$

    First off, I think that since the goal of your model will be to generate new names based on a description, your model should work at a character-level and not word-level.



    You can think of the level at which your model is working as the building blocks you are providing for it (it needs to learn them during training). These building blocks are than used for generation of new constructs. So if you want to construct new words (names) than you need to teach the model to understand the connection between the individual characters and the input description. Your model can deal with the input at a word-level but its output needs to be at character-level.



    You can read more about it at: Besides Word Embedding, why you need to know Character Embedding?






    share|improve this answer









    $endgroup$












    • $begingroup$
      Thanks @Mark.F Do you have an example of an architecture that is taking words/vectors as input and generating characters on the output?
      $endgroup$
      – freediver
      Jan 16 at 18:49















    0












    $begingroup$

    First off, I think that since the goal of your model will be to generate new names based on a description, your model should work at a character-level and not word-level.



    You can think of the level at which your model is working as the building blocks you are providing for it (it needs to learn them during training). These building blocks are than used for generation of new constructs. So if you want to construct new words (names) than you need to teach the model to understand the connection between the individual characters and the input description. Your model can deal with the input at a word-level but its output needs to be at character-level.



    You can read more about it at: Besides Word Embedding, why you need to know Character Embedding?






    share|improve this answer









    $endgroup$












    • $begingroup$
      Thanks @Mark.F Do you have an example of an architecture that is taking words/vectors as input and generating characters on the output?
      $endgroup$
      – freediver
      Jan 16 at 18:49













    0












    0








    0





    $begingroup$

    First off, I think that since the goal of your model will be to generate new names based on a description, your model should work at a character-level and not word-level.



    You can think of the level at which your model is working as the building blocks you are providing for it (it needs to learn them during training). These building blocks are than used for generation of new constructs. So if you want to construct new words (names) than you need to teach the model to understand the connection between the individual characters and the input description. Your model can deal with the input at a word-level but its output needs to be at character-level.



    You can read more about it at: Besides Word Embedding, why you need to know Character Embedding?






    share|improve this answer









    $endgroup$



    First off, I think that since the goal of your model will be to generate new names based on a description, your model should work at a character-level and not word-level.



    You can think of the level at which your model is working as the building blocks you are providing for it (it needs to learn them during training). These building blocks are than used for generation of new constructs. So if you want to construct new words (names) than you need to teach the model to understand the connection between the individual characters and the input description. Your model can deal with the input at a word-level but its output needs to be at character-level.



    You can read more about it at: Besides Word Embedding, why you need to know Character Embedding?







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Jan 16 at 8:10









    Mark.FMark.F

    1,0841521




    1,0841521











    • $begingroup$
      Thanks @Mark.F Do you have an example of an architecture that is taking words/vectors as input and generating characters on the output?
      $endgroup$
      – freediver
      Jan 16 at 18:49
















    • $begingroup$
      Thanks @Mark.F Do you have an example of an architecture that is taking words/vectors as input and generating characters on the output?
      $endgroup$
      – freediver
      Jan 16 at 18:49















    $begingroup$
    Thanks @Mark.F Do you have an example of an architecture that is taking words/vectors as input and generating characters on the output?
    $endgroup$
    – freediver
    Jan 16 at 18:49




    $begingroup$
    Thanks @Mark.F Do you have an example of an architecture that is taking words/vectors as input and generating characters on the output?
    $endgroup$
    – freediver
    Jan 16 at 18:49











    0












    $begingroup$

    Use char-rnn. I used it to make a Twitter bot, @peopledex, that generated Pokemon descriptions based on names, but you could easily reverse the fields.



    Examples - the bit before the colon is the name (input), after is the description (output).



    • Dribbur: Thought for evolution, it seeks the coming of sprays. The area basisones from behind.

    • Convictur: It rests when it evolves into a hundred special magnetism. As a result, the magma courses through its body glows.

    • Litigant: It slicks virious trees and was reanimated from a fossil. It can compresse minute silk that was reanimated from the light

    The descriptions don't make much sense, but with names that would be less of a problem. The nice thing is that working with fictional generation there's no wrong answers.






    share|improve this answer









    $endgroup$

















      0












      $begingroup$

      Use char-rnn. I used it to make a Twitter bot, @peopledex, that generated Pokemon descriptions based on names, but you could easily reverse the fields.



      Examples - the bit before the colon is the name (input), after is the description (output).



      • Dribbur: Thought for evolution, it seeks the coming of sprays. The area basisones from behind.

      • Convictur: It rests when it evolves into a hundred special magnetism. As a result, the magma courses through its body glows.

      • Litigant: It slicks virious trees and was reanimated from a fossil. It can compresse minute silk that was reanimated from the light

      The descriptions don't make much sense, but with names that would be less of a problem. The nice thing is that working with fictional generation there's no wrong answers.






      share|improve this answer









      $endgroup$















        0












        0








        0





        $begingroup$

        Use char-rnn. I used it to make a Twitter bot, @peopledex, that generated Pokemon descriptions based on names, but you could easily reverse the fields.



        Examples - the bit before the colon is the name (input), after is the description (output).



        • Dribbur: Thought for evolution, it seeks the coming of sprays. The area basisones from behind.

        • Convictur: It rests when it evolves into a hundred special magnetism. As a result, the magma courses through its body glows.

        • Litigant: It slicks virious trees and was reanimated from a fossil. It can compresse minute silk that was reanimated from the light

        The descriptions don't make much sense, but with names that would be less of a problem. The nice thing is that working with fictional generation there's no wrong answers.






        share|improve this answer









        $endgroup$



        Use char-rnn. I used it to make a Twitter bot, @peopledex, that generated Pokemon descriptions based on names, but you could easily reverse the fields.



        Examples - the bit before the colon is the name (input), after is the description (output).



        • Dribbur: Thought for evolution, it seeks the coming of sprays. The area basisones from behind.

        • Convictur: It rests when it evolves into a hundred special magnetism. As a result, the magma courses through its body glows.

        • Litigant: It slicks virious trees and was reanimated from a fossil. It can compresse minute silk that was reanimated from the light

        The descriptions don't make much sense, but with names that would be less of a problem. The nice thing is that working with fictional generation there's no wrong answers.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 36 mins ago









        polm23polm23

        22817




        22817



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Data Science Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f44068%2fwhat-nn-architecture-to-predict-fantasy-character-names-based-on-description%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Францішак Багушэвіч Змест Сям'я | Біяграфія | Творчасць | Мова Багушэвіча | Ацэнкі дзейнасці | Цікавыя факты | Спадчына | Выбраная бібліяграфія | Ушанаванне памяці | У філатэліі | Зноскі | Літаратура | Спасылкі | НавігацыяЛяхоўскі У. Рупіўся дзеля Бога і людзей: Жыццёвы шлях Лявона Вітан-Дубейкаўскага // Вольскі і Памідораў з песняй пра немца Адвакат, паэт, народны заступнік Ашмянскі веснікВ Минске появится площадь Богушевича и улица Сырокомли, Белорусская деловая газета, 19 июля 2001 г.Айцец беларускай нацыянальнай ідэі паўстаў у бронзе Сяргей Аляксандравіч Адашкевіч (1918, Мінск). 80-я гады. Бюст «Францішак Багушэвіч».Яўген Мікалаевіч Ціхановіч. «Партрэт Францішка Багушэвіча»Мікола Мікалаевіч Купава. «Партрэт зачынальніка новай беларускай літаратуры Францішка Багушэвіча»Уладзімір Іванавіч Мелехаў. На помніку «Змагарам за родную мову» Барэльеф «Францішак Багушэвіч»Памяць пра Багушэвіча на Віленшчыне Страчаная сталіца. Беларускія шыльды на вуліцах Вільні«Krynica». Ideologia i przywódcy białoruskiego katolicyzmuФранцішак БагушэвічТворы на knihi.comТворы Францішка Багушэвіча на bellib.byСодаль Уладзімір. Францішак Багушэвіч на Лідчыне;Луцкевіч Антон. Жыцьцё і творчасьць Фр. Багушэвіча ў успамінах ягоных сучасьнікаў // Запісы Беларускага Навуковага таварыства. Вільня, 1938. Сшытак 1. С. 16-34.Большая российская1188761710000 0000 5537 633Xn9209310021619551927869394п

            Partai Komunis Tiongkok Daftar isi Kepemimpinan | Pranala luar | Referensi | Menu navigasidiperiksa1 perubahan tertundacpc.people.com.cnSitus resmiSurat kabar resmi"Why the Communist Party is alive, well and flourishing in China"0307-1235"Full text of Constitution of Communist Party of China"smengembangkannyas

            ValueError: Expected n_neighbors <= n_samples, but n_samples = 1, n_neighbors = 6 (SMOTE) The 2019 Stack Overflow Developer Survey Results Are InCan SMOTE be applied over sequence of words (sentences)?ValueError when doing validation with random forestsSMOTE and multi class oversamplingLogic behind SMOTE-NC?ValueError: Error when checking target: expected dense_1 to have shape (7,) but got array with shape (1,)SmoteBoost: Should SMOTE be ran individually for each iteration/tree in the boosting?solving multi-class imbalance classification using smote and OSSUsing SMOTE for Synthetic Data generation to improve performance on unbalanced dataproblem of entry format for a simple model in KerasSVM SMOTE fit_resample() function runs forever with no result