Click here to Skip to main content
12,450,335 members (43,771 online)
Click here to Skip to main content

Stats

78.2K views
5.9K downloads
111 bookmarked
Posted

Detect a written text's language

, 21 Oct 2009 CPOL
An article on how to detect the language of a written text.
namespace WinSample
{
    partial class DemoForm
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.Windows.Forms.ColumnHeader columnHeader4;
            System.Windows.Forms.ColumnHeader columnHeader5;
            System.Windows.Forms.ColumnHeader columnHeader6;
            System.Windows.Forms.ColumnHeader columnHeader10;
            System.Windows.Forms.ColumnHeader columnHeader11;
            System.Windows.Forms.ColumnHeader columnHeader8;
            System.Windows.Forms.ColumnHeader columnHeader1;
            System.Windows.Forms.ColumnHeader columnHeader2;
            System.Windows.Forms.ColumnHeader columnHeader3;
            System.Windows.Forms.ColumnHeader columnHeader7;
            System.Windows.Forms.ColumnHeader columnHeader9;
            System.Windows.Forms.ColumnHeader columnHeader13;
            System.Windows.Forms.ColumnHeader columnHeader14;
            System.Windows.Forms.ColumnHeader columnHeader15;
            System.Windows.Forms.ColumnHeader columnHeader12;
            System.Windows.Forms.ColumnHeader columnHeader16;
            System.Windows.Forms.ColumnHeader columnHeader17;
            System.Windows.Forms.ColumnHeader columnHeader18;
            System.Windows.Forms.ColumnHeader columnHeader19;
            System.Windows.Forms.ColumnHeader columnHeader20;
            System.Windows.Forms.ColumnHeader columnHeader21;
            System.Windows.Forms.ColumnHeader columnHeader22;
            System.Windows.Forms.ColumnHeader columnHeader23;
            System.Windows.Forms.ColumnHeader columnHeader24;
            System.Windows.Forms.ColumnHeader columnHeader25;
            System.Windows.Forms.Label label1;
            System.Windows.Forms.Label label2;
            System.Windows.Forms.Label label3;
            System.Windows.Forms.Label label4;
            System.Windows.Forms.Label label5;
            System.Windows.Forms.Label label6;
            System.Windows.Forms.Label label7;
            this.tabControl1 = new System.Windows.Forms.TabControl();
            this.tabPage2 = new System.Windows.Forms.TabPage();
            this.cbLangCompare = new System.Windows.Forms.ComboBox();
            this.lvAnalyzeWordResult = new System.Windows.Forms.ListView();
            this.tbSumWords = new System.Windows.Forms.TextBox();
            this.lvAnalyzeCharsetResult = new System.Windows.Forms.ListView();
            this.lvAnalyzeNGramsResult = new System.Windows.Forms.ListView();
            this.textBox1 = new System.Windows.Forms.TextBox();
            this.tbResult = new System.Windows.Forms.TextBox();
            this.tbSumTokens = new System.Windows.Forms.TextBox();
            this.btnAnalyze = new System.Windows.Forms.Button();
            this.tbSource = new System.Windows.Forms.TextBox();
            this.tabPage1 = new System.Windows.Forms.TabPage();
            this.tbCharRanks = new System.Windows.Forms.TextBox();
            this.tbWordRanks = new System.Windows.Forms.TextBox();
            this.tbTokenRanks = new System.Windows.Forms.TextBox();
            this.listView3 = new System.Windows.Forms.ListView();
            this.lvCharset = new System.Windows.Forms.ListView();
            this.lvWords = new System.Windows.Forms.ListView();
            this.lvNGrams = new System.Windows.Forms.ListView();
            this.cbTables = new System.Windows.Forms.ComboBox();
            columnHeader4 = new System.Windows.Forms.ColumnHeader();
            columnHeader5 = new System.Windows.Forms.ColumnHeader();
            columnHeader6 = new System.Windows.Forms.ColumnHeader();
            columnHeader10 = new System.Windows.Forms.ColumnHeader();
            columnHeader11 = new System.Windows.Forms.ColumnHeader();
            columnHeader8 = new System.Windows.Forms.ColumnHeader();
            columnHeader1 = new System.Windows.Forms.ColumnHeader();
            columnHeader2 = new System.Windows.Forms.ColumnHeader();
            columnHeader3 = new System.Windows.Forms.ColumnHeader();
            columnHeader7 = new System.Windows.Forms.ColumnHeader();
            columnHeader9 = new System.Windows.Forms.ColumnHeader();
            columnHeader13 = new System.Windows.Forms.ColumnHeader();
            columnHeader14 = new System.Windows.Forms.ColumnHeader();
            columnHeader15 = new System.Windows.Forms.ColumnHeader();
            columnHeader12 = new System.Windows.Forms.ColumnHeader();
            columnHeader16 = new System.Windows.Forms.ColumnHeader();
            columnHeader17 = new System.Windows.Forms.ColumnHeader();
            columnHeader18 = new System.Windows.Forms.ColumnHeader();
            columnHeader19 = new System.Windows.Forms.ColumnHeader();
            columnHeader20 = new System.Windows.Forms.ColumnHeader();
            columnHeader21 = new System.Windows.Forms.ColumnHeader();
            columnHeader22 = new System.Windows.Forms.ColumnHeader();
            columnHeader23 = new System.Windows.Forms.ColumnHeader();
            columnHeader24 = new System.Windows.Forms.ColumnHeader();
            columnHeader25 = new System.Windows.Forms.ColumnHeader();
            label1 = new System.Windows.Forms.Label();
            label2 = new System.Windows.Forms.Label();
            label3 = new System.Windows.Forms.Label();
            label4 = new System.Windows.Forms.Label();
            label5 = new System.Windows.Forms.Label();
            label6 = new System.Windows.Forms.Label();
            label7 = new System.Windows.Forms.Label();
            this.tabControl1.SuspendLayout();
            this.tabPage2.SuspendLayout();
            this.tabPage1.SuspendLayout();
            this.SuspendLayout();
            // 
            // columnHeader4
            // 
            columnHeader4.Text = "Pos";
            columnHeader4.Width = 45;
            // 
            // columnHeader5
            // 
            columnHeader5.Text = "Token";
            // 
            // columnHeader6
            // 
            columnHeader6.Text = "Rank";
            columnHeader6.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            // 
            // columnHeader10
            // 
            columnHeader10.Text = "Language";
            columnHeader10.Width = 62;
            // 
            // columnHeader11
            // 
            columnHeader11.DisplayIndex = 1;
            columnHeader11.Text = "Diff";
            columnHeader11.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            // 
            // columnHeader8
            // 
            columnHeader8.Text = "Occurences";
            columnHeader8.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            columnHeader8.Width = 82;
            // 
            // columnHeader1
            // 
            columnHeader1.Text = "Pos";
            columnHeader1.Width = 45;
            // 
            // columnHeader2
            // 
            columnHeader2.Text = "Token";
            // 
            // columnHeader3
            // 
            columnHeader3.Text = "Rank";
            columnHeader3.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            // 
            // columnHeader7
            // 
            columnHeader7.Text = "Occurences";
            columnHeader7.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            columnHeader7.Width = 84;
            // 
            // columnHeader9
            // 
            columnHeader9.Text = "Hex";
            // 
            // columnHeader13
            // 
            columnHeader13.Text = "Token";
            // 
            // columnHeader14
            // 
            columnHeader14.Text = "Mallus";
            columnHeader14.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            // 
            // columnHeader15
            // 
            columnHeader15.Text = "Occurences";
            columnHeader15.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            columnHeader15.Width = 70;
            // 
            // columnHeader12
            // 
            columnHeader12.Text = "Token";
            // 
            // columnHeader16
            // 
            columnHeader16.Text = "Mallus";
            columnHeader16.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            // 
            // columnHeader17
            // 
            columnHeader17.Text = "Occurences";
            columnHeader17.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            columnHeader17.Width = 70;
            // 
            // columnHeader18
            // 
            columnHeader18.Text = "Pos";
            columnHeader18.Width = 45;
            // 
            // columnHeader19
            // 
            columnHeader19.Text = "Token";
            // 
            // columnHeader20
            // 
            columnHeader20.Text = "Rank";
            columnHeader20.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            // 
            // columnHeader21
            // 
            columnHeader21.Text = "Occurences";
            columnHeader21.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            columnHeader21.Width = 84;
            // 
            // columnHeader22
            // 
            columnHeader22.DisplayIndex = 2;
            columnHeader22.Text = "Language Name";
            columnHeader22.Width = 134;
            // 
            // columnHeader23
            // 
            columnHeader23.Text = "Token";
            // 
            // columnHeader24
            // 
            columnHeader24.Text = "Mallus";
            columnHeader24.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            // 
            // columnHeader25
            // 
            columnHeader25.Text = "Occurences";
            columnHeader25.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            columnHeader25.Width = 70;
            // 
            // label1
            // 
            label1.AutoSize = true;
            label1.Location = new System.Drawing.Point(9, 69);
            label1.Name = "label1";
            label1.Size = new System.Drawing.Size(43, 13);
            label1.TabIndex = 5;
            label1.Text = "Charset";
            // 
            // label2
            // 
            label2.AutoSize = true;
            label2.Location = new System.Drawing.Point(471, 72);
            label2.Name = "label2";
            label2.Size = new System.Drawing.Size(45, 13);
            label2.TabIndex = 5;
            label2.Text = "NGrams";
            label2.Click += new System.EventHandler(this.label2_Click);
            // 
            // label3
            // 
            label3.AutoSize = true;
            label3.Location = new System.Drawing.Point(239, 69);
            label3.Name = "label3";
            label3.Size = new System.Drawing.Size(38, 13);
            label3.TabIndex = 6;
            label3.Text = "Words";
            label3.Click += new System.EventHandler(this.label3_Click);
            // 
            // label4
            // 
            label4.AutoSize = true;
            label4.Location = new System.Drawing.Point(567, 42);
            label4.Name = "label4";
            label4.Size = new System.Drawing.Size(38, 13);
            label4.TabIndex = 9;
            label4.Text = "Words";
            // 
            // label5
            // 
            label5.AutoSize = true;
            label5.Location = new System.Drawing.Point(287, 42);
            label5.Name = "label5";
            label5.Size = new System.Drawing.Size(45, 13);
            label5.TabIndex = 8;
            label5.Text = "NGrams";
            // 
            // label6
            // 
            label6.AutoSize = true;
            label6.Location = new System.Drawing.Point(8, 42);
            label6.Name = "label6";
            label6.Size = new System.Drawing.Size(43, 13);
            label6.TabIndex = 7;
            label6.Text = "Charset";
            // 
            // label7
            // 
            label7.AutoSize = true;
            label7.Location = new System.Drawing.Point(847, 42);
            label7.Name = "label7";
            label7.Size = new System.Drawing.Size(47, 13);
            label7.TabIndex = 9;
            label7.Text = "Similarity";
            // 
            // tabControl1
            // 
            this.tabControl1.Controls.Add(this.tabPage2);
            this.tabControl1.Controls.Add(this.tabPage1);
            this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tabControl1.Location = new System.Drawing.Point(0, 0);
            this.tabControl1.Name = "tabControl1";
            this.tabControl1.SelectedIndex = 0;
            this.tabControl1.Size = new System.Drawing.Size(1128, 453);
            this.tabControl1.TabIndex = 1;
            // 
            // tabPage2
            // 
            this.tabPage2.Controls.Add(label3);
            this.tabPage2.Controls.Add(label2);
            this.tabPage2.Controls.Add(label1);
            this.tabPage2.Controls.Add(this.cbLangCompare);
            this.tabPage2.Controls.Add(this.lvAnalyzeWordResult);
            this.tabPage2.Controls.Add(this.tbSumWords);
            this.tabPage2.Controls.Add(this.lvAnalyzeCharsetResult);
            this.tabPage2.Controls.Add(this.lvAnalyzeNGramsResult);
            this.tabPage2.Controls.Add(this.textBox1);
            this.tabPage2.Controls.Add(this.tbResult);
            this.tabPage2.Controls.Add(this.tbSumTokens);
            this.tabPage2.Controls.Add(this.btnAnalyze);
            this.tabPage2.Controls.Add(this.tbSource);
            this.tabPage2.Location = new System.Drawing.Point(4, 22);
            this.tabPage2.Name = "tabPage2";
            this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
            this.tabPage2.Size = new System.Drawing.Size(1120, 427);
            this.tabPage2.TabIndex = 1;
            this.tabPage2.Text = "Test";
            this.tabPage2.UseVisualStyleBackColor = true;
            // 
            // cbLangCompare
            // 
            this.cbLangCompare.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cbLangCompare.FormattingEnabled = true;
            this.cbLangCompare.Location = new System.Drawing.Point(8, 32);
            this.cbLangCompare.Name = "cbLangCompare";
            this.cbLangCompare.Size = new System.Drawing.Size(225, 21);
            this.cbLangCompare.Sorted = true;
            this.cbLangCompare.TabIndex = 4;
            this.cbLangCompare.SelectedIndexChanged += new System.EventHandler(this.cbLangCompare_SelectedIndexChanged);
            // 
            // lvAnalyzeWordResult
            // 
            this.lvAnalyzeWordResult.AllowColumnReorder = true;
            this.lvAnalyzeWordResult.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)));
            this.lvAnalyzeWordResult.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            columnHeader12,
            columnHeader16,
            columnHeader17});
            this.lvAnalyzeWordResult.FullRowSelect = true;
            this.lvAnalyzeWordResult.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
            this.lvAnalyzeWordResult.Location = new System.Drawing.Point(239, 88);
            this.lvAnalyzeWordResult.Name = "lvAnalyzeWordResult";
            this.lvAnalyzeWordResult.Size = new System.Drawing.Size(226, 307);
            this.lvAnalyzeWordResult.TabIndex = 3;
            this.lvAnalyzeWordResult.UseCompatibleStateImageBehavior = false;
            this.lvAnalyzeWordResult.View = System.Windows.Forms.View.Details;
            this.lvAnalyzeWordResult.SelectedIndexChanged += new System.EventHandler(this.listView5_SelectedIndexChanged);
            // 
            // tbSumWords
            // 
            this.tbSumWords.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.tbSumWords.Location = new System.Drawing.Point(355, 401);
            this.tbSumWords.Name = "tbSumWords";
            this.tbSumWords.ReadOnly = true;
            this.tbSumWords.Size = new System.Drawing.Size(110, 20);
            this.tbSumWords.TabIndex = 2;
            this.tbSumWords.TextChanged += new System.EventHandler(this.tbSumWords_TextChanged);
            // 
            // lvAnalyzeCharsetResult
            // 
            this.lvAnalyzeCharsetResult.AllowColumnReorder = true;
            this.lvAnalyzeCharsetResult.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)));
            this.lvAnalyzeCharsetResult.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            columnHeader23,
            columnHeader24,
            columnHeader25});
            this.lvAnalyzeCharsetResult.FullRowSelect = true;
            this.lvAnalyzeCharsetResult.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
            this.lvAnalyzeCharsetResult.Location = new System.Drawing.Point(8, 88);
            this.lvAnalyzeCharsetResult.Name = "lvAnalyzeCharsetResult";
            this.lvAnalyzeCharsetResult.Size = new System.Drawing.Size(226, 307);
            this.lvAnalyzeCharsetResult.TabIndex = 3;
            this.lvAnalyzeCharsetResult.UseCompatibleStateImageBehavior = false;
            this.lvAnalyzeCharsetResult.View = System.Windows.Forms.View.Details;
            // 
            // lvAnalyzeNGramsResult
            // 
            this.lvAnalyzeNGramsResult.AllowColumnReorder = true;
            this.lvAnalyzeNGramsResult.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)));
            this.lvAnalyzeNGramsResult.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            columnHeader13,
            columnHeader14,
            columnHeader15});
            this.lvAnalyzeNGramsResult.FullRowSelect = true;
            this.lvAnalyzeNGramsResult.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
            this.lvAnalyzeNGramsResult.Location = new System.Drawing.Point(471, 88);
            this.lvAnalyzeNGramsResult.Name = "lvAnalyzeNGramsResult";
            this.lvAnalyzeNGramsResult.Size = new System.Drawing.Size(226, 307);
            this.lvAnalyzeNGramsResult.TabIndex = 3;
            this.lvAnalyzeNGramsResult.UseCompatibleStateImageBehavior = false;
            this.lvAnalyzeNGramsResult.View = System.Windows.Forms.View.Details;
            this.lvAnalyzeNGramsResult.SelectedIndexChanged += new System.EventHandler(this.listView4_SelectedIndexChanged);
            // 
            // textBox1
            // 
            this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.textBox1.Location = new System.Drawing.Point(124, 401);
            this.textBox1.Name = "textBox1";
            this.textBox1.ReadOnly = true;
            this.textBox1.Size = new System.Drawing.Size(110, 20);
            this.textBox1.TabIndex = 2;
            // 
            // tbResult
            // 
            this.tbResult.Location = new System.Drawing.Point(261, 32);
            this.tbResult.Name = "tbResult";
            this.tbResult.ReadOnly = true;
            this.tbResult.Size = new System.Drawing.Size(110, 20);
            this.tbResult.TabIndex = 2;
            // 
            // tbSumTokens
            // 
            this.tbSumTokens.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.tbSumTokens.Location = new System.Drawing.Point(587, 401);
            this.tbSumTokens.Name = "tbSumTokens";
            this.tbSumTokens.ReadOnly = true;
            this.tbSumTokens.Size = new System.Drawing.Size(110, 20);
            this.tbSumTokens.TabIndex = 2;
            this.tbSumTokens.TextChanged += new System.EventHandler(this.tbSumTokens_TextChanged);
            // 
            // btnAnalyze
            // 
            this.btnAnalyze.Location = new System.Drawing.Point(390, 7);
            this.btnAnalyze.Name = "btnAnalyze";
            this.btnAnalyze.Size = new System.Drawing.Size(75, 23);
            this.btnAnalyze.TabIndex = 1;
            this.btnAnalyze.Text = "Analyze";
            this.btnAnalyze.UseVisualStyleBackColor = true;
            this.btnAnalyze.Click += new System.EventHandler(this.button1_Click);
            // 
            // tbSource
            // 
            this.tbSource.Location = new System.Drawing.Point(7, 7);
            this.tbSource.Name = "tbSource";
            this.tbSource.Size = new System.Drawing.Size(364, 20);
            this.tbSource.TabIndex = 0;
            // 
            // tabPage1
            // 
            this.tabPage1.Controls.Add(label7);
            this.tabPage1.Controls.Add(label4);
            this.tabPage1.Controls.Add(label5);
            this.tabPage1.Controls.Add(label6);
            this.tabPage1.Controls.Add(this.tbCharRanks);
            this.tabPage1.Controls.Add(this.tbWordRanks);
            this.tabPage1.Controls.Add(this.tbTokenRanks);
            this.tabPage1.Controls.Add(this.listView3);
            this.tabPage1.Controls.Add(this.lvCharset);
            this.tabPage1.Controls.Add(this.lvWords);
            this.tabPage1.Controls.Add(this.lvNGrams);
            this.tabPage1.Controls.Add(this.cbTables);
            this.tabPage1.Location = new System.Drawing.Point(4, 22);
            this.tabPage1.Name = "tabPage1";
            this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
            this.tabPage1.Size = new System.Drawing.Size(1120, 427);
            this.tabPage1.TabIndex = 0;
            this.tabPage1.Text = "Model";
            this.tabPage1.UseVisualStyleBackColor = true;
            // 
            // tbCharRanks
            // 
            this.tbCharRanks.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.tbCharRanks.Location = new System.Drawing.Point(164, 401);
            this.tbCharRanks.Name = "tbCharRanks";
            this.tbCharRanks.ReadOnly = true;
            this.tbCharRanks.Size = new System.Drawing.Size(110, 20);
            this.tbCharRanks.TabIndex = 3;
            // 
            // tbWordRanks
            // 
            this.tbWordRanks.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.tbWordRanks.Location = new System.Drawing.Point(731, 399);
            this.tbWordRanks.Name = "tbWordRanks";
            this.tbWordRanks.ReadOnly = true;
            this.tbWordRanks.Size = new System.Drawing.Size(110, 20);
            this.tbWordRanks.TabIndex = 3;
            // 
            // tbTokenRanks
            // 
            this.tbTokenRanks.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.tbTokenRanks.Location = new System.Drawing.Point(451, 399);
            this.tbTokenRanks.Name = "tbTokenRanks";
            this.tbTokenRanks.ReadOnly = true;
            this.tbTokenRanks.Size = new System.Drawing.Size(110, 20);
            this.tbTokenRanks.TabIndex = 3;
            this.tbTokenRanks.TextChanged += new System.EventHandler(this.tbTokenRanks_TextChanged);
            // 
            // listView3
            // 
            this.listView3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)));
            this.listView3.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            columnHeader10,
            columnHeader22,
            columnHeader11});
            this.listView3.FullRowSelect = true;
            this.listView3.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
            this.listView3.Location = new System.Drawing.Point(846, 58);
            this.listView3.Name = "listView3";
            this.listView3.Size = new System.Drawing.Size(263, 335);
            this.listView3.TabIndex = 1;
            this.listView3.UseCompatibleStateImageBehavior = false;
            this.listView3.View = System.Windows.Forms.View.Details;
            this.listView3.SelectedIndexChanged += new System.EventHandler(this.listView3_SelectedIndexChanged);
            // 
            // lvCharset
            // 
            this.lvCharset.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)));
            this.lvCharset.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            columnHeader18,
            columnHeader19,
            columnHeader20,
            columnHeader21});
            this.lvCharset.FullRowSelect = true;
            this.lvCharset.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
            this.lvCharset.Location = new System.Drawing.Point(6, 58);
            this.lvCharset.Name = "lvCharset";
            this.lvCharset.Size = new System.Drawing.Size(275, 335);
            this.lvCharset.TabIndex = 1;
            this.lvCharset.UseCompatibleStateImageBehavior = false;
            this.lvCharset.View = System.Windows.Forms.View.Details;
            this.lvCharset.SelectedIndexChanged += new System.EventHandler(this.lvCharset_SelectedIndexChanged);
            // 
            // lvWords
            // 
            this.lvWords.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)));
            this.lvWords.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            columnHeader4,
            columnHeader5,
            columnHeader6,
            columnHeader8});
            this.lvWords.FullRowSelect = true;
            this.lvWords.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
            this.lvWords.Location = new System.Drawing.Point(566, 58);
            this.lvWords.Name = "lvWords";
            this.lvWords.Size = new System.Drawing.Size(275, 335);
            this.lvWords.TabIndex = 1;
            this.lvWords.UseCompatibleStateImageBehavior = false;
            this.lvWords.View = System.Windows.Forms.View.Details;
            // 
            // lvNGrams
            // 
            this.lvNGrams.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)));
            this.lvNGrams.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            columnHeader1,
            columnHeader2,
            columnHeader3,
            columnHeader7,
            columnHeader9});
            this.lvNGrams.FullRowSelect = true;
            this.lvNGrams.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
            this.lvNGrams.Location = new System.Drawing.Point(286, 58);
            this.lvNGrams.Name = "lvNGrams";
            this.lvNGrams.Size = new System.Drawing.Size(275, 335);
            this.lvNGrams.TabIndex = 1;
            this.lvNGrams.UseCompatibleStateImageBehavior = false;
            this.lvNGrams.View = System.Windows.Forms.View.Details;
            // 
            // cbTables
            // 
            this.cbTables.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cbTables.FormattingEnabled = true;
            this.cbTables.Location = new System.Drawing.Point(7, 6);
            this.cbTables.Name = "cbTables";
            this.cbTables.Size = new System.Drawing.Size(267, 21);
            this.cbTables.Sorted = true;
            this.cbTables.TabIndex = 0;
            this.cbTables.SelectedIndexChanged += new System.EventHandler(this.cbTables_SelectedIndexChanged);
            // 
            // DemoForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(1128, 453);
            this.Controls.Add(this.tabControl1);
            this.Name = "DemoForm";
            this.Text = "DialogueMaster™ Babel Demo";
            this.Load += new System.EventHandler(this.Form1_Load);
            this.tabControl1.ResumeLayout(false);
            this.tabPage2.ResumeLayout(false);
            this.tabPage2.PerformLayout();
            this.tabPage1.ResumeLayout(false);
            this.tabPage1.PerformLayout();
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.TabControl tabControl1;
        private System.Windows.Forms.TabPage tabPage1;
        private System.Windows.Forms.ListView listView3;
        private System.Windows.Forms.ListView lvWords;
        private System.Windows.Forms.ComboBox cbTables;
        private System.Windows.Forms.TabPage tabPage2;
        private System.Windows.Forms.TextBox tbSumTokens;
        private System.Windows.Forms.Button btnAnalyze;
        private System.Windows.Forms.TextBox tbSource;
        private System.Windows.Forms.TextBox tbWordRanks;
        private System.Windows.Forms.TextBox tbTokenRanks;
        private System.Windows.Forms.ListView lvNGrams;
        private System.Windows.Forms.ComboBox cbLangCompare;
        private System.Windows.Forms.ListView lvAnalyzeWordResult;
        private System.Windows.Forms.TextBox tbSumWords;
        private System.Windows.Forms.TextBox tbResult;
        private System.Windows.Forms.TextBox tbCharRanks;
        private System.Windows.Forms.ListView lvCharset;
        private System.Windows.Forms.ListView lvAnalyzeCharsetResult;
        private System.Windows.Forms.TextBox textBox1;
        private System.Windows.Forms.ListView lvAnalyzeNGramsResult;
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Carsten Zeumer
Software Developer (Senior)
Germany Germany
Carsten started programming Basic and Assembler back in the 80’s when he got his first C64. After switching to a x86 based system he started programming in Pascal and C. He started Windows programming with the arrival of Windows 3.0. After working for various internet companies developing a linguistic text analysis and classification software for 25hours communications he is now working as a contractor.

Carsten lives in Hamburg, Germany with his wife and five children.

You may also be interested in...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160826.1 | Last Updated 21 Oct 2009
Article Copyright 2009 by Carsten Zeumer
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid