-
ICTCLAS的JNI調(diào)用接口文件:
Title:ICTCLAS Caller
* <p>Description:do chinese word segmentation.don t change the pakage and CLASS name, orelse you can t use it.
* 請不要改變包名、類名以及native的方法名,否則調(diào)用將失效。
* 由于ICTCLAS本身存在很多魯棒性問題,調(diào)用segSentence時,String參數(shù)請保證不要過長或帶有亂碼。調(diào)用次數(shù)過多(如處理幾十G的數(shù)據(jù))會有可能造成內(nèi)存溢出。
* 故基本只能用于較小規(guī)模數(shù)據(jù)(相對幾十G來說)。
* 請運行時設(shè)置jvm足夠的堆棧空間。
標簽:
ICTCLAS
segmentation
Description
chinese
上傳時間:
2014-01-25
上傳用戶:it男一枚
-
delphi 自定義網(wǎng)絡函數(shù):unit net
interface
uses
sysutils
,windows
,dialogs
,winsock
,classes
,comobj
,wininet
//得到本機的局域網(wǎng)ip地址
function getlocalip(var localip:String): boolean
//通過ip返回機器名
function getnamebyipaddr(ipaddr: String var macname: String): boolean
//獲取網(wǎng)絡中sqlserver列表
function getsqlserverlist(var list: tStringlist): boolean
//獲取網(wǎng)絡中的所有網(wǎng)絡類型
function getnetlist(var list: tStringlist): boolean
//獲取網(wǎng)絡中的工作組
標簽:
interface
sysutils
classes
dialogs
上傳時間:
2015-05-09
上傳用戶:wanghui2438
-
java 100例子
import javax.swing.JOptionPane //調(diào)用method
class c { //定義名字
public static void main(String[] args)
{ //開始method
JOptionPane.showMessageDialog( null, "錯誤" ) //顯示一條信息
System.exit(0) // 結(jié)束程序
} //結(jié)束method
} //結(jié)束class
標簽:
JOptionPane
import
method
public
上傳時間:
2015-05-18
上傳用戶:gengxiaochao
-
unit Other
interface
Uses Windows,tlhelp32,PsAPI
type
PStrData = ^TStrData
TStrData = record
Ident: Integer
Str: String
end
TUseInfo=record
QQ,
Mail,
Page:String
DL:boolean
end
TSendMailInfo=record
IPAddress,
FAddress,
FName,
FPW,
FCName,
FCPW:String //發(fā)信郵箱檢證用戶密碼
end
{ FloatToText, FloatToTextFmt, TextToFloat, and FloatToDecimal type codes }
標簽:
TStrData
interface
PStrData
Windows
上傳時間:
2014-12-22
上傳用戶:asddsd
-
數(shù)字運算,判斷一個數(shù)是否接近素數(shù)
A Niven number is a number such that the sum of its digits divides itself. For example, 111 is a Niven number because the sum of its digits is 3, which divides 111. We can also specify a number in another base b, and a number in base b is a Niven number if the sum of its digits divides its value.
Given b (2 <= b <= 10) and a number in base b, determine whether it is a Niven number or not.
Input
Each line of input contains the base b, followed by a String of digits representing a positive integer in that base. There are no leading zeroes. The input is terminated by a line consisting of 0 alone.
Output
For each case, print "yes" on a line if the given number is a Niven number, and "no" otherwise.
Sample Input
10 111
2 110
10 123
6 1000
8 2314
0
Sample Output
yes
yes
no
yes
no
標簽:
數(shù)字
運算
上傳時間:
2015-05-21
上傳用戶:daguda
-
相冊是J2me MIDLet 的一個demo程序,可以使用戶查閱圖片在J2me支持的手持設(shè)備上。
文件夾與文件
+ImageAlbum
-ImageAlbum.mcp
-ImageAlbum_ReadMe.txt
- debug_out
- release_out
- resources
- 1.png
- 2.png
- 3.png
- 4.png
- 5.png
+ sources
- DownloadFromURLForm.java
- HelpDisplayForm.java
- HttpDownloader.java
- ImageAlbum.java
- MainMenu.java
- MyTimerTask.java
- OptionsInputForm.java
- PhotoCanvas.java
- RMSOperations.java
- StringByteOperations.java String data
標簽:
MIDLet
J2me
demo
程序
上傳時間:
2014-11-30
上傳用戶:semi1981
-
The government of a small but important country has decided that the alphabet needs to be streamlined and reordered. Uppercase letters will be eliminated. They will issue a royal decree in the form of a String of B and A characters. The first character in the decree specifies whether a must come ( B )Before b in the new alphabet or ( A )After b . The second character determines the relative placement of b and c , etc. So, for example, "BAA" means that a must come Before b , b must come After c , and c must come After d .
Any letters beyond these requirements are to be excluded, so if the decree specifies k comparisons then the new alphabet will contain the first k+1 lowercase letters of the current alphabet.
Create a class Alphabet that contains the method choices that takes the decree as input and returns the number of possible new alphabets that conform to the decree. If more than 1,000,000,000 are possible, return -1.
Definition
標簽:
government
streamline
important
alphabet
上傳時間:
2015-06-09
上傳用戶:weixiao99
-
? Java函數(shù)速查
你能很快的查到你要的函數(shù)
DataBinding類
代表數(shù)據(jù)源字段和組件屬性之間一個單獨的綁定。
package com.ms.wfc.data.ui
public class DataBinding
implements IConstructable
說明
DataBinder控件使用該類來表示數(shù)據(jù)源中的每一個綁定。
請參閱:《Microsoft Visual J++ 6.0 程序員指南》第18章“WFC中的數(shù)據(jù)綁定”。
構(gòu)造器
DataBinding.DataBinding
創(chuàng)建一個DataBinding對象。
語法
public DataBinding ()
public DataBinding ( IComponent target, String propertyName,String fieldName )
public DataBinding ( IComponent target, String propertyName,String fieldName, IDataFormat format )
標簽:
DataBinding
package
Java
data
上傳時間:
2013-12-20
上傳用戶:TRIFCT
-
人民幣大寫金額轉(zhuǎn)換程序(修正版v0.0.3)
===================================
1.使用方法:
-------------
將Cash_RMB.dcu放入Delphi安裝目錄下的Lib中,在uses中加入Cash_RMB,
即可引用CashRMB方法.
function CashRMB(CashAmount: Double): String
如:
procedure TForm1.Button1Click(Sender: TObject)
begin
QRLabel1.Caption := CashRMB(Table1.FieldByName( 金額 ).AsFloat)
end
結(jié)果將傳回人民幣金額大寫字符串.
如果 CashAmount = 0 或數(shù)值溢出(超出萬億位),結(jié)果返回空串.
2.說明:
--------
A.本轉(zhuǎn)換程序最大程度只支持到萬億元(位)的金額數(shù)值轉(zhuǎn)換操作.如果你的
轉(zhuǎn)換數(shù)值超出此極限,你可以在調(diào)用前先行判斷數(shù)據(jù)的合法性,如果沒有作預
先判斷,轉(zhuǎn)換過程中將引發(fā)本單元中自帶的錯誤處理例程.
b.該轉(zhuǎn)換結(jié)果符合標準金額大寫書寫格式,零角零分等字樣不存在于最終的
轉(zhuǎn)換結(jié)果中.
c.本轉(zhuǎn)換程序自帶數(shù)據(jù)溢出等數(shù)據(jù)非法及轉(zhuǎn)換錯誤等處理例程.
d.本程序適用于32位的Delphi版本.
標簽:
Cash_RMB
dcu
轉(zhuǎn)換
程序
上傳時間:
2013-12-31
上傳用戶:hebmuljb
-
用jsp編寫的網(wǎng)上測試系統(tǒng)。
(1)以“Windows身份驗證模式”連接SQL Server數(shù)據(jù)庫。
(2)需要安裝SQL Server 的補丁SP3。
(3)運行的時候可以參照書上的說明進行,如出試卷的時候,若試卷標題重復,可以從數(shù)據(jù)庫中刪除,然后添加試卷。
(4)出試卷路徑為 http://localhost:8080/chap22/chujuan.jsp 如果放在根目錄,則路徑和書上的界面一樣。
(5)選擇題路徑為 http://localhost:8080/chap22/xuanzeti.jsp
(6)判斷題路徑為 http://localhost:8080/chap22/panduanti.jsp
(7)如果采用本應用中連接數(shù)據(jù)庫的方法調(diào)試不通,可以參照20章中通過ODBC連接數(shù)據(jù)庫的方法來修改
將以下代碼:
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver")
String driver = "jdbc:microsoft:sqlserver://localhost:1433"
Connection conn = DriverManager.getConnection(driver,"","")
修改成:
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver")
String driver = "jdbc:odbc:try"
Connection conn = DriverManager.getConnection(driver,"sa","")
//如果是windows驗證,則不用用戶名和密碼
標簽:
Server
SQL
Windows
jsp
上傳時間:
2015-06-27
上傳用戶:450976175