当执行最大熵程序时,R停止工作/终止

时间:2017-11-06 16:06:56

标签: r text-classification maxent

我需要你的帮助,因为我不明白为什么我的RStudio终结符/在执行最大熵到文本分类时停止工作。我使用推文数据7877行。有代码

    $gallery = new Gallery;
    $gallery_form = $this->createFormBuilder($gallery)
            ->add('galleryName', TextType::class, array('label' => 'Gallery Name'))
            ->add('Add', SubmitType::class, array('label' => 'Add', 'attr' => array('class' => 'btn btn-primary')))
            ->getForm();
    $gallery_form->handleRequest($request);
    if ($gallery_form->isValid() && $gallery_form->isSubmitted()) {

        $galleryName = $gallery_form['galleryName']->getData();
        $gallery->setGalleryName($galleryName);

        $em = $this->getDoctrine()->getManager();
        $em->persist($gallery);
        $em->flush();
    }

    return $this->render('admin/addgallery.html.twig', [
                'gallery_form' => $gallery_form->createView()
    ]);
}`**enter code here**`

感谢您的帮助Screenshot

0 个答案:

没有答案