from textstat import Stat
from textaslexico import Lexico
from textsimi import SimiTxt, SimiFromCluster
-from textwordcloud import WordCloud
+from textwordcloud import WordCloud, ClusterCloud
from profile_segment import ProfileSegment
#from textcheckcorpus import checkcorpus
from openanalyse import OpenAnalyse
##########################################################
#encodage
if sys.platform == 'darwin' :
- sys.setdefaultencoding('utf-8')
- wx.SetDefaultPyEncoding('utf-8')
+ sys.setdefaultencoding('UTF-8')
+ wx.SetDefaultPyEncoding('UTF-8')
else :
sys.setdefaultencoding(locale.getpreferredencoding())
+
#chemin de l'application
AppliPath = os.path.abspath(os.path.dirname(os.path.realpath(sys.argv[0])))
#chemin des images
ConfigPath = ConstructConfigPath(UserConfigPath)
-
langues = {'french' : wx.LANGUAGE_FRENCH,
'english' : wx.LANGUAGE_ENGLISH,}
#####################################################################
except :
BugReport(self)
+ def OnClusterCloud(self, corpus, parametres = None) :
+ self.Text = ClusterCloud(self, corpus, parametres = parametres, dlg = progressbar(self, 3))
def OnAFCM(self, event):
try: