{"componentChunkName":"component---node-modules-carrotsearch-gatsby-theme-apidocs-templates-documentation-page-js","path":"/parameter-tuning/","result":{"data":{"html":{"frontmatter":{"id":"parameter-tuning","title":"Parameter tuning"},"html":"<article>\n  <h1>Parameter tuning</h1>\n\n  <p id=\"9a856d17\">\n    This chapter answers the most commonly asked questions about Lingo3G\n    clustering quality or performance tuning.\n  </p>\n\n  <section id=\"faq-labels\">\n    <h3>\n        <a class=\"anchor\" href=\"#faq-labels\" aria-hidden=\"true\"><svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"/></svg></a>How can I remove or promote certain phrases?\n      </h3>\n\n    <p id=\"faq-labels:27e48aa1\">\n      Lingo3G has an advanced model of boosting or penalizing potential cluster\n      phrases. See the <a href=\"/label-dictionary/\">Label dictionary</a>\n      chapter for more information.\n    </p>\n  </section>\n\n  <section id=\"faq-unclustered-documents\">\n    <h3>\n        <a class=\"anchor\" href=\"#faq-unclustered-documents\" aria-hidden=\"true\"><svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"/></svg></a>Why are not <em>all</em> documents assigned to clusters?\n      </h3>\n\n    <p id=\"faq-unclustered-documents:1dfdcc7f\">\n      When Lingo3G discovers a set of clusters, it assigns documents relevant to\n      these clusters and may leave a certain portion of the input unassigned\n      anywhere. Documents not referenced from any cluster are essentially\n      <em>outliers</em>: they are not sufficiently related to any other document\n      in the input.\n    </p>\n\n    <p id=\"faq-unclustered-documents:efafeafb\">\n      The fraction of unassigned documents increases with the number of input\n      documents as Lingo3G by default tries to output a set of clusters that is\n      concise and readable to human users. In certain applications, for example\n      when you pass cluster labels to another automated step, you can increase\n      the number of clusters and therefore decrease the number of unassigned\n      documents.\n    </p>\n\n    <p id=\"faq-unclustered-documents:b613b619\">\n      To reduce the number of unassigned documents, apply the following\n      parameter changes:\n    </p>\n\n    <ol>\n      <li>\n        <p id=\"faq-unclustered-documents:cbe70b43\">\n          Increase\n          <a href=\"/lingo3g-parameters/#hierarchy.maxClusteringPassesTop\"><code>maxClusteringPassesTop</code></a>\n          above the default value or set it to zero to force Lingo3G to create\n          as many clusters as possible.\n        </p>\n      </li>\n      <li>\n        <p id=\"faq-unclustered-documents:442f1e7b\">\n          Increase\n          <a href=\"/lingo3g-parameters/#hierarchy.documentCoverageTarget\"><code>documentCoverageTarget</code></a>\n          above the default value.\n        </p>\n      </li>\n      <li>\n        <p id=\"faq-unclustered-documents:48286499\">\n          Increase\n          <a href=\"/lingo3g-parameters/#labels.singleWordLabelWeight\"><code>singleWordLabelWeight</code></a>\n          above the default value. This will increase the number of one-word\n          labels, which may not always be desirable.\n        </p>\n      </li>\n      <li>\n        <p id=\"faq-unclustered-documents:5e8d1c9b\">\n          When you cluster more than a hundred documents, you can further reduce\n          the number of unassigned documents by lowering\n          <a href=\"/lingo3g-parameters/#documents.wordDfThresholdScalingFactor\"><code>wordDfThresholdScalingFactor</code></a>\n          and\n          <a href=\"/lingo3g-parameters/#documents.phraseDfThresholdScalingFactor\"><code>phraseDfThresholdScalingFactor</code></a>. This will force Lingo3G to consider lower-frequency words and\n          phrases hence create more clusters. Note that lowering these\n          parameters may significantly increase processing time.\n        </p>\n      </li>\n    </ol>\n  </section>\n\n  <section id=\"faq-general-clusters\">\n    <h3>\n        <a class=\"anchor\" href=\"#faq-general-clusters\" aria-hidden=\"true\"><svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"/></svg></a>How to make more general clusters?\n      </h3>\n\n    <p id=\"faq-general-clusters:1b3cc2e1\">\n      To make the clusters more general (containing more documents, covering\n      broader topics), apply the following parameter changes:\n    </p>\n\n    <ol>\n      <li>\n        <p id=\"faq-general-clusters:fff34dcf\">\n          Increase\n          <a href=\"/lingo3g-parameters/#labels.singleWordLabelWeight\"><code>singleWordLabelWeight</code></a>\n          above the default value, possibly up to 1.00. Note that this will\n          increase the number of one-word labels, which may not always be\n          desirable.\n        </p>\n      </li>\n\n      <li>\n        <p id=\"faq-general-clusters:a50a84f4\">\n          Increase\n          <a href=\"/lingo3g-parameters/#clusters.maxClusterSize\"><code>maxClusterSize</code></a>\n          above the default value, possibly up to 1.00.\n        </p>\n      </li>\n\n      <li>\n        <p id=\"faq-general-clusters:00823ec1\">\n          Increase\n          <a href=\"/lingo3g-parameters/#clusters.minClusterSize\"><code>minClusterSize</code></a>\n          in steps of 0.01 to eliminate the clusters with smallest numbers of\n          documents.\n        </p>\n      </li>\n\n      <li>\n        <p id=\"faq-general-clusters:03ff1d5d\">\n          To further increase the size of clusters, try lowering\n          <a href=\"/lingo3g-parameters/#merging.mergeThreshold\"><code>mergeThreshold</code></a>. This will cause Lingo3G to merge similar clusters into larger ones.\n        </p>\n      </li>\n    </ol>\n  </section>\n\n  <section id=\"faq-specific-clusters\">\n    <h3>\n        <a class=\"anchor\" href=\"#faq-specific-clusters\" aria-hidden=\"true\"><svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"/></svg></a>How to make more focused clusters?\n      </h3>\n\n    <p id=\"faq-specific-clusters:7ad8e8e0\">\n      To make the clusters more specific (containing fewer documents, covering\n      more narrow topics), apply the following parameter changes:\n    </p>\n\n    <ol>\n      <li>\n        <p id=\"faq-specific-clusters:1bc6b20c\">\n          Decrease\n          <a href=\"/lingo3g-parameters/#clusters.maxClusterSize\"><code>maxClusterSize</code></a>\n          below the default value to eliminate large clusters.\n        </p>\n      </li>\n\n      <li>\n        <p id=\"faq-specific-clusters:c8cd3d5c\">\n          Decrease\n          <a href=\"/lingo3g-parameters/#hierarchy.maxClusteringPassesTop\"><code>maxClusteringPassesTop</code></a>\n          to 0 to force Lingo3G to create as many clusters as possible.\n        </p>\n      </li>\n\n      <li>\n        <p id=\"faq-specific-clusters:5e5455ec\">\n          If there are too many one-word meaningless cluster labels, try\n          lowering\n          <a href=\"/lingo3g-parameters/#labels.singleWordLabelWeight\"><code>singleWordLabelWeight</code></a>. Setting this attribute to 0.00 will eliminate one-word labels\n          altogether.\n        </p>\n      </li>\n    </ol>\n  </section>\n</article>","tableOfContents":[{"heading":"How can I remove or promote certain phrases?","anchor":"faq-labels"},{"heading":"Why are not all documents assigned to clusters?","anchor":"faq-unclustered-documents"},{"heading":"How to make more general clusters?","anchor":"faq-general-clusters"},{"heading":"How to make more focused clusters?","anchor":"faq-specific-clusters"}]}},"pageContext":{"slug":"/parameter-tuning/"}},"staticQueryHashes":["1164750013"]}