Documentation of 'recunn.datasets.TextGeneration' Java class
TextGeneration
recunn.datasets

Class TextGeneration

  • All Implemented Interfaces:
    java.io.Serializable


    public class TextGeneration
    extends DataSet
    See Also:
    Serialized Form
    • Field Detail

      • reportSequenceLength

        public static int reportSequenceLength
      • singleWordAutocorrect

        public static boolean singleWordAutocorrect
      • reportPerplexity

        public static boolean reportPerplexity
    • Constructor Detail

      • TextGeneration

        public TextGeneration(java.lang.String path)
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • generateText

        public static java.util.List<java.lang.String> generateText(Model model,
                                                                    int steps,
                                                                    boolean argmax,
                                                                    double temperature,
                                                                    java.util.Random rng)
                                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • sequenceToSentence

        public static java.lang.String sequenceToSentence(DataSequence sequence)
      • DisplayReport

        public void DisplayReport(Model model,
                                  java.util.Random rng)
                           throws java.lang.Exception
        Specified by:
        DisplayReport in class DataSet
        Throws:
        java.lang.Exception

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.