formtrafficpos.cs
来自「KTDictSeg 简介: KTDictSeg 是由KaiToo搜索开发的一款基」· CS 代码 · 共 40 行
CS
40 行
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using KTDictSeg;
namespace Demo
{
public partial class FormTrafficPos : Form
{
PosTraffic m_Traffic = new PosTraffic();
public FormTrafficPos()
{
InitializeComponent();
}
private void buttonTraffic_Click(object sender, EventArgs e)
{
List<String> words = FormDemo.m_SimpleDictSeg.Segment(textBoxSource.Text);
m_Traffic.POS = FormDemo.m_SimpleDictSeg.Pos;
m_Traffic.Traffic(words);
ArrayList binGroup = m_Traffic.GetPosBinGroup();
textBoxSegwords.Text = "";
foreach (T_POSBin bin in binGroup)
{
textBoxSegwords.Text += String.Format("{0}-{1} {2} , {3}-{4}\r\n",
bin.m_Pos1, bin.m_Pos2, bin.m_Count,
CPOS.GetChsPos(CPOS.InnertPosToPos(bin.m_Pos1)), CPOS.GetChsPos(CPOS.InnertPosToPos(bin.m_Pos2)));
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?