charclasses.html

来自「数据挖掘的最常用工具。由于开源」· HTML 代码 · 共 678 行 · 第 1/2 页

HTML
678
字号
<DL><DD>Constructs a new CharClass object that provides space for  classes of characters from 0 to maxCharCode. Initially all characters are in class 0.<P><DL><DT><B>Parameters:</B><DD><CODE>maxCharCode</CODE> - the last character code to be                    considered. (127 for 7bit Lexers,                     255 for 8bit Lexers and 0xFFFF                    for Unicode Lexers).</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getMaxCharCode()"><!-- --></A><H3>getMaxCharCode</H3><PRE>public char <B>getMaxCharCode</B>()</PRE><DL><DD>Returns the greatest Unicode value of the current input character set.<P><DD><DL></DL></DD></DL><HR><A NAME="setMaxCharCode(int)"><!-- --></A><H3>setMaxCharCode</H3><PRE>public void <B>setMaxCharCode</B>(int&nbsp;charCode)</PRE><DL><DD>Sets the larges Unicode value of the current input character set.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>charCode</CODE> - the largest character code, used for the scanner                    (i.e. %7bit, %8bit, %16bit etc.)</DL></DD></DL><HR><A NAME="getNumClasses()"><!-- --></A><H3>getNumClasses</H3><PRE>public int <B>getNumClasses</B>()</PRE><DL><DD>Returns the current number of character classes.<P><DD><DL></DL></DD></DL><HR><A NAME="makeClass(weka.core.parser.JFlex.IntCharSet, boolean)"><!-- --></A><H3>makeClass</H3><PRE>public void <B>makeClass</B>(<A HREF="../../../../weka/core/parser/JFlex/IntCharSet.html" title="class in weka.core.parser.JFlex">IntCharSet</A>&nbsp;set,                      boolean&nbsp;caseless)</PRE><DL><DD>Updates the current partition, so that the specified set of characters gets a new character class. Characters that are elements of <code>set</code> are not in the same equivalence class with characters that are not elements of <code>set</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>set</CODE> - the set of characters to distinguish from the rest<DD><CODE>caseless</CODE> - if true upper/lower/title case are considered equivalent</DL></DD></DL><HR><A NAME="getClassCode(char)"><!-- --></A><H3>getClassCode</H3><PRE>public int <B>getClassCode</B>(char&nbsp;letter)</PRE><DL><DD>Returns the code of the character class the specified character belongs to.<P><DD><DL></DL></DD></DL><HR><A NAME="dump()"><!-- --></A><H3>dump</H3><PRE>public void <B>dump</B>()</PRE><DL><DD>Dump charclasses to the dump output stream<P><DD><DL></DL></DD></DL><HR><A NAME="toString(int)"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>(int&nbsp;theClass)</PRE><DL><DD>Return a string representation of one char class<P><DD><DL><DT><B>Parameters:</B><DD><CODE>theClass</CODE> - the index of the class to</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Return a string representation of the char classes stored in this class.  Enumerates the classes by index.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="makeClass(char, boolean)"><!-- --></A><H3>makeClass</H3><PRE>public void <B>makeClass</B>(char&nbsp;singleChar,                      boolean&nbsp;caseless)</PRE><DL><DD>Creates a new character class for the single character <code>singleChar</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>caseless</CODE> - if true upper/lower/title case are considered equivalent</DL></DD></DL><HR><A NAME="makeClass(java.lang.String, boolean)"><!-- --></A><H3>makeClass</H3><PRE>public void <B>makeClass</B>(java.lang.String&nbsp;str,                      boolean&nbsp;caseless)</PRE><DL><DD>Creates a new character class for each character of the specified String.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>caseless</CODE> - if true upper/lower/title case are considered equivalent</DL></DD></DL><HR><A NAME="makeClass(java.util.Vector, boolean)"><!-- --></A><H3>makeClass</H3><PRE>public void <B>makeClass</B>(java.util.Vector&nbsp;v,                      boolean&nbsp;caseless)</PRE><DL><DD>Updates the current partition, so that the specified set of characters gets a new character class. Characters that are elements of the set <code>v</code> are not in the same equivalence class with characters that are not elements of the set <code>v</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - a Vector of Interval objects.             This Vector represents a set of characters. The set of characters is            the union of all intervalls in the Vector.<DD><CODE>caseless</CODE> - if true upper/lower/title case are considered equivalent</DL></DD></DL><HR><A NAME="makeClassNot(java.util.Vector, boolean)"><!-- --></A><H3>makeClassNot</H3><PRE>public void <B>makeClassNot</B>(java.util.Vector&nbsp;v,                         boolean&nbsp;caseless)</PRE><DL><DD>Updates the current partition, so that the set of all characters not contained in the specified  set of characters gets a new character class. Characters that are elements of the set <code>v</code> are not in the same equivalence class with characters that are not elements of the set <code>v</code>. This method is equivalent to <code>makeClass(v)</code><P><DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - a Vector of Interval objects.             This Vector represents a set of characters. The set of characters is            the union of all intervalls in the Vector.<DD><CODE>caseless</CODE> - if true upper/lower/title case are considered equivalent</DL></DD></DL><HR><A NAME="getClassCodes(java.util.Vector)"><!-- --></A><H3>getClassCodes</H3><PRE>public int[] <B>getClassCodes</B>(java.util.Vector&nbsp;intervallVec)</PRE><DL><DD>Returns an array that contains the character class codes of all characters in the specified set of input characters.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>intervallVec</CODE> - a Vector of Intervalls, the set of characters to get                       the class codes for<DT><B>Returns:</B><DD>an array with the class codes for intervallVec</DL></DD></DL><HR><A NAME="getNotClassCodes(java.util.Vector)"><!-- --></A><H3>getNotClassCodes</H3><PRE>public int[] <B>getNotClassCodes</B>(java.util.Vector&nbsp;intervallVec)</PRE><DL><DD>Returns an array that contains the character class codes of all characters that are <strong>not</strong> in the specified set of input characters.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>intervallVec</CODE> - a Vector of Intervalls, the complement of the                       set of characters to get the class codes for<DT><B>Returns:</B><DD>an array with the class codes for the complement of intervallVec</DL></DD></DL><HR><A NAME="check()"><!-- --></A><H3>check</H3><PRE>public void <B>check</B>()</PRE><DL><DD>Check consistency of the stored classes [debug]. all classes must be disjoint, checks if all characters have a class assigned.<P><DD><DL></DL></DD></DL><HR><A NAME="getIntervalls()"><!-- --></A><H3>getIntervalls</H3><PRE>public <A HREF="../../../../weka/core/parser/JFlex/CharClassInterval.html" title="class in weka.core.parser.JFlex">CharClassInterval</A>[] <B>getIntervalls</B>()</PRE><DL><DD>Returns an array of all CharClassIntervalls in this char class collection.  The array is ordered by char code, i.e. <code>result[i+1].start = result[i].end+1</code> Each CharClassInterval contains the number of the char class it belongs to.<P><DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="http://www.cs.waikato.ac.nz/ml/weka/" target="_blank"><FONT CLASS="NavBarFont1"><B>Weka's home</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../weka/core/parser/JFlex/Action.html" title="class in weka.core.parser.JFlex"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../weka/core/parser/JFlex/CharClassException.html" title="class in weka.core.parser.JFlex"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../index.html?weka/core/parser/JFlex/CharClasses.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="CharClasses.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

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