| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| |
| <html lang="sv"> |
| <head> |
| |
| <title>FeatureMap (MaltParser 1.9.2)</title> |
| <meta name="date" content="2018-02-18"> |
| <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="FeatureMap (MaltParser 1.9.2)"; |
| } |
| } |
| catch(err) { |
| } |
| |
| var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| |
| <div class="topNav"><a name="navbar.top"> |
| |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/FeatureMap.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| <div class="aboutLanguage"><b>MaltParser 1.9.2</b></div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/maltparser/ml/lib/FeatureList.html" title="class in org.maltparser.ml.lib"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/maltparser/ml/lib/Lib.html" title="class in org.maltparser.ml.lib"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/maltparser/ml/lib/FeatureMap.html" target="_top">Frames</a></li> |
| <li><a href="FeatureMap.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"> |
| |
| |
| |
| |
| |
| |
| |
| |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| |
| </a></div> |
| |
| |
| <div class="header"> |
| <div class="subTitle">org.maltparser.ml.lib</div> |
| <h2 title="Class FeatureMap" class="title">Class FeatureMap</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li>java.lang.Object</li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.maltparser.ml.lib.FeatureMap</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd>java.io.Serializable</dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public class <a href="../../../../src-html/org/maltparser/ml/lib/FeatureMap.html#line.16">FeatureMap</a> |
| extends java.lang.Object |
| implements java.io.Serializable</pre> |
| <div class="block">The purpose of the feature map is to map MaltParser's column based features together with the symbol code from the symbol table to |
| unique indices suitable for liblinear and libsvm. A feature column position are combined together with the symbol code in a |
| 64-bit key (Long), where 16 bits are reserved for the position and 48 bits are reserved for the symbol code.</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Author:</span></dt> |
| <dd>Johan Hall</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../serialized-form.html#org.maltparser.ml.lib.FeatureMap">Serialized Form</a></dd> |
| </dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.summary"> |
| |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/maltparser/ml/lib/FeatureMap.html#FeatureMap--">FeatureMap</a></span>()</code> |
| <div class="block">Creates a feature map and sets the feature counter to 1</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/maltparser/ml/lib/FeatureMap.html#addIndex-int-int-">addIndex</a></span>(int featurePosition, |
| int code)</code> |
| <div class="block">Adds a mapping from a combination of the position in the column-based feature vector and the symbol code to |
| an index value suitable for liblinear and libsvm.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/maltparser/ml/lib/FeatureMap.html#addIndex-int-int-int-">addIndex</a></span>(int featurePosition, |
| int code1, |
| int code2)</code> </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/maltparser/ml/lib/FeatureMap.html#decrementfeatureCounter--">decrementfeatureCounter</a></span>()</code> </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/maltparser/ml/lib/FeatureMap.html#decrementIndex-java.lang.Long-">decrementIndex</a></span>(java.lang.Long key)</code> </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/maltparser/ml/lib/FeatureMap.html#getFeatureCounter--">getFeatureCounter</a></span>()</code> </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/maltparser/ml/lib/FeatureMap.html#getIndex-int-int-">getIndex</a></span>(int featurePosition, |
| int code)</code> |
| <div class="block">Return</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/maltparser/ml/lib/FeatureMap.html#getIndex-int-int-int-">getIndex</a></span>(int featurePosition, |
| int code1, |
| int code2)</code> </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>java.lang.Integer</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/maltparser/ml/lib/FeatureMap.html#removeIndex-long-">removeIndex</a></span>(long key)</code> </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>java.lang.Long[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/maltparser/ml/lib/FeatureMap.html#reverseMap--">reverseMap</a></span>()</code> </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/maltparser/ml/lib/FeatureMap.html#setFeatureCounter-int-">setFeatureCounter</a></span>(int featureCounter)</code> </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/maltparser/ml/lib/FeatureMap.html#setIndex-long-int-">setIndex</a></span>(long key, |
| int index)</code> </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/maltparser/ml/lib/FeatureMap.html#size--">size</a></span>()</code> </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| |
| </a> |
| <h3>Methods inherited from class java.lang.Object</h3> |
| <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="FeatureMap--"> |
| |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>FeatureMap</h4> |
| <pre>public <a href="../../../../src-html/org/maltparser/ml/lib/FeatureMap.html#line.24">FeatureMap</a>()</pre> |
| <div class="block">Creates a feature map and sets the feature counter to 1</div> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| |
| </a> |
| <h3>Method Detail</h3> |
| <a name="addIndex-int-int-"> |
| |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addIndex</h4> |
| <pre>public int <a href="../../../../src-html/org/maltparser/ml/lib/FeatureMap.html#line.37">addIndex</a>(int featurePosition, |
| int code)</pre> |
| <div class="block">Adds a mapping from a combination of the position in the column-based feature vector and the symbol code to |
| an index value suitable for liblinear and libsvm.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>featurePosition</code> - a position in the column-based feature vector</dd> |
| <dd><code>code</code> - a symbol code</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the index value</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getIndex-int-int-"> |
| |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getIndex</h4> |
| <pre>public int <a href="../../../../src-html/org/maltparser/ml/lib/FeatureMap.html#line.54">getIndex</a>(int featurePosition, |
| int code)</pre> |
| <div class="block">Return</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>featurePosition</code> - the position in the column-based feature vector</dd> |
| <dd><code>code</code> - the symbol code suitable for liblinear and libsvm</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the index value if it exists, otherwise -1</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="addIndex-int-int-int-"> |
| |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addIndex</h4> |
| <pre>public int <a href="../../../../src-html/org/maltparser/ml/lib/FeatureMap.html#line.60">addIndex</a>(int featurePosition, |
| int code1, |
| int code2)</pre> |
| </li> |
| </ul> |
| <a name="setIndex-long-int-"> |
| |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setIndex</h4> |
| <pre>public int <a href="../../../../src-html/org/maltparser/ml/lib/FeatureMap.html#line.70">setIndex</a>(long key, |
| int index)</pre> |
| </li> |
| </ul> |
| <a name="decrementIndex-java.lang.Long-"> |
| |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>decrementIndex</h4> |
| <pre>public int <a href="../../../../src-html/org/maltparser/ml/lib/FeatureMap.html#line.74">decrementIndex</a>(java.lang.Long key)</pre> |
| </li> |
| </ul> |
| <a name="decrementfeatureCounter--"> |
| |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>decrementfeatureCounter</h4> |
| <pre>public void <a href="../../../../src-html/org/maltparser/ml/lib/FeatureMap.html#line.82">decrementfeatureCounter</a>()</pre> |
| </li> |
| </ul> |
| <a name="removeIndex-long-"> |
| |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>removeIndex</h4> |
| <pre>public java.lang.Integer <a href="../../../../src-html/org/maltparser/ml/lib/FeatureMap.html#line.86">removeIndex</a>(long key)</pre> |
| </li> |
| </ul> |
| <a name="getIndex-int-int-int-"> |
| |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getIndex</h4> |
| <pre>public int <a href="../../../../src-html/org/maltparser/ml/lib/FeatureMap.html#line.90">getIndex</a>(int featurePosition, |
| int code1, |
| int code2)</pre> |
| </li> |
| </ul> |
| <a name="size--"> |
| |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>size</h4> |
| <pre>public int <a href="../../../../src-html/org/maltparser/ml/lib/FeatureMap.html#line.98">size</a>()</pre> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the size of the map</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="reverseMap--"> |
| |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>reverseMap</h4> |
| <pre>public java.lang.Long[] <a href="../../../../src-html/org/maltparser/ml/lib/FeatureMap.html#line.103">reverseMap</a>()</pre> |
| </li> |
| </ul> |
| <a name="setFeatureCounter-int-"> |
| |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setFeatureCounter</h4> |
| <pre>public void <a href="../../../../src-html/org/maltparser/ml/lib/FeatureMap.html#line.114">setFeatureCounter</a>(int featureCounter)</pre> |
| </li> |
| </ul> |
| <a name="getFeatureCounter--"> |
| |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>getFeatureCounter</h4> |
| <pre>public int <a href="../../../../src-html/org/maltparser/ml/lib/FeatureMap.html#line.121">getFeatureCounter</a>()</pre> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the current value of the feature counter.</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| |
| |
| <div class="bottomNav"><a name="navbar.bottom"> |
| |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/FeatureMap.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| <div class="aboutLanguage"><b>MaltParser 1.9.2</b></div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/maltparser/ml/lib/FeatureList.html" title="class in org.maltparser.ml.lib"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/maltparser/ml/lib/Lib.html" title="class in org.maltparser.ml.lib"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/maltparser/ml/lib/FeatureMap.html" target="_top">Frames</a></li> |
| <li><a href="FeatureMap.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"> |
| |
| |
| |
| |
| |
| |
| |
| |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| |
| </a></div> |
| |
| <p class="legalCopy"><small>Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.</small></p> |
| </body> |
| </html> |
|
|