⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 observation.java

📁 一个利用条件随机场(CRF)开发的词性标注工具包
💻 JAVA
字号:
/*    Copyright (C) 2006, Xuan-Hieu Phan        Email:	hieuxuan@ecei.tohoku.ac.jp		pxhieu@gmail.com    URL:	http://www.hori.ecei.tohoku.ac.jp/~hieuxuan        Graduate School of Information Sciences,    Tohoku University*/package crf.tagger;import java.io.*;import java.util.*;public class Observation {    public String originalData = "";	// original data (before generating context predicates)    public int[] cps = null;		// array of context predicates    public int modelLabel = -1;		// label predicted by model    public Observation() {	// do nothing currently    }        public String toString(Map lbInt2Str) {	String res = originalData;		String labelStr = (String)lbInt2Str.get(new Integer(modelLabel));	if (labelStr != null) {	    res += Option.outputSeparator + labelStr.toUpperCase();	}		return res;    }    } // end of class Observation

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -