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

            ValueError: Error when checking input: expected conv2d_13_input to have shape (3, 150, 150) but got array with shape (150, 150, 3)2019 Community Moderator ElectionError when checking : expected dense_1_input to have shape (None, 5) but got array with shape (200, 1)Error 'Expected 2D array, got 1D array instead:'ValueError: Error when checking input: expected lstm_41_input to have 3 dimensions, but got array with shape (40000,100)ValueError: Error when checking target: expected dense_1 to have shape (7,) but got array with shape (1,)ValueError: Error when checking target: expected dense_2 to have shape (1,) but got array with shape (0,)Keras exception: ValueError: Error when checking input: expected conv2d_1_input to have shape (150, 150, 3) but got array with shape (256, 256, 3)Steps taking too long to completewhen checking input: expected dense_1_input to have shape (13328,) but got array with shape (317,)ValueError: Error when checking target: expected dense_3 to have shape (None, 1) but got array with shape (7715, 40000)Keras exception: Error when checking input: expected dense_input to have shape (2,) but got array with shape (1,)

            Ружовы пелікан Змест Знешні выгляд | Пашырэнне | Асаблівасці біялогіі | Літаратура | НавігацыяДагледжаная версіяправерана1 зменаДагледжаная версіяправерана1 змена/ 22697590 Сістэматыкана ВіківідахВыявына Вікісховішчы174693363011049382

            Illegal assignment from SObject to ContactFetching String, Id from Map - Illegal Assignment Id to Field / ObjectError: Compile Error: Illegal assignment from String to BooleanError: List has no rows for assignment to SObjectError on Test Class - System.QueryException: List has no rows for assignment to SObjectRemote action problemDML requires SObject or SObject list type error“Illegal assignment from List to List”Test Class Fail: Batch Class: System.QueryException: List has no rows for assignment to SObjectMapping to a user'List has no rows for assignment to SObject' Mystery