<?xml version="1.0" encoding="UTF-8"?>
<!-- Licensed Materials - Property of IBM

     IBM SPSS Products: Text Analytics

     (C) Copyright IBM Corp. 2003, 2011

     US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP
     Schedule Contract with IBM Corp.  -->
<Extension version="1.0" debug="false">
  <ExtensionDetails id="Text_Link_Analysis" label="Text Link Analysis" version="1.0" provider="SPSS Inc." providerTag="SPSS" copyright="(c) 2006 SPSS Inc." description="SPSS Text Link Analysis" />
  <Resources>
    <HelpInfo id="help" type="native" path="/ta_guide_ddita/"/>
    <Bundle id="translations.tla" type="properties" path="messages"/>
    <!--<SharedLibrary id="TextLinkAnalysisModel" path="spss.TMWBServer/bin/TextLinkAnalysis" />--> 
	  <JarFile id="commons-beanutils" path="../spss.TMWBClient/lib/commons-beanutils.jar"/>
    <JarFile id="commons-betwixt-0.7" path="../spss.TMWBClient/lib/commons-betwixt-0.7.jar"/> 
    <JarFile id="commons-digester-1.7" path="../spss.TMWBClient/lib/commons-digester-1.7.jar"/>
	
	  <JarFile id="spss-text-spssmlhelper-0.5" path="../spss.TMWBClient/lib/spss-text-spssmlhelper-0.5.jar"/>
    <JarFile id="spss-text-analytics-0.8.jar" path="../spss.TMWBClient/lib/spss-text-analytics-0.8.jar"/>
    <JarFile id="stafs" path="../spss.TMWBClient/STAS.jar"/>
    <JarFile id="TableLayout-bin-jdk1.5-2009-08-26" path="../spss.TMWBClient/lib/TableLayout-bin-jdk1.5-2009-08-26.jar"/>
    <JarFile id="tmwb" path="../spss.TMWBClient/lib/tmwb.jar"/>
	<!--Use sqlite.jar file from jre JarFile id="sqlite" path="../spss.TMWBClient/lib/sqlite.jar"/-->
  
    <JarFile id="dbUtilLib" path="../spss.TMWBClient/lib/dbUtilLib.jar"/>

  </Resources>
  <Node id="textlinkanalysis" type="dataTransformer" customPalette="text_mining" relativePosition="before" relativeTo="fileviewer" label="Text Link Analysis" labelKey="tlanode.LABEL" helpLink="textmining/tmfc/tmfc_tla_node_intro.htm" description="Analyzes and discovers text links in a collection of text data" descriptionKey="tlanode_tooltip.LABEL" delegate="com.spss.tmwb.tlanode.actions.TLANodeProcessDelegate" afSupport="true">
    <Properties>
      <!-- =========== debug information =========== -->
      <Property name="debug_on" valueType="boolean" defaultValue="false"/>

      <!-- =========== Field name localisation =========== -->    
      <Property name="concept1_field"     valueType="string" defaultValueKey="concept1Field.LABEL" />
      <Property name="type1_field"        valueType="string" defaultValueKey="type1Field.LABEL" />
      <Property name="concept2_field"     valueType="string" defaultValueKey="concept2Field.LABEL" />
      <Property name="type2_field"        valueType="string" defaultValueKey="type2Field.LABEL" />
      <Property name="concept3_field"     valueType="string" defaultValueKey="concept3Field.LABEL" />
      <Property name="type3_field"        valueType="string" defaultValueKey="type3Field.LABEL" />
      <Property name="concept4_field"     valueType="string" defaultValueKey="concept4Field.LABEL" />
      <Property name="type4_field"        valueType="string" defaultValueKey="type4Field.LABEL" />
      <Property name="concept5_field"     valueType="string" defaultValueKey="concept5Field.LABEL" />
      <Property name="type5_field"        valueType="string" defaultValueKey="type5Field.LABEL" />
      <Property name="concept6_field"     valueType="string" defaultValueKey="concept6Field.LABEL" />
      <Property name="type6_field"        valueType="string" defaultValueKey="type6Field.LABEL" />

      <Property name="rule_number_field"  valueType="string" defaultValueKey="ruleNumberField.LABEL" />
      <Property name="doc_id_field"       valueType="string" defaultValueKey="docIdField.LABEL" />
      <Property name="matched_text_field" valueType="string" defaultValueKey="matchedTextField.LABEL" />

      <!-- =========== fields tab =========== -->
      <Property name="id_field" valueType="string" />
      <Property name="text_field" valueType="string" />
      <Property name="language_field" valueType="string" label="Language field" labelKey="language.LABEL"/>
      
      <Property name="method" valueType="enum">
      <Enumeration>
          <Enum value="ReadText" label="Actual text" labelKey="method.ReadText.LABEL" />
          <Enum value="ReadPath" label="Pathnames to documents" labelKey="method.ReadPath.LABEL" />
        </Enumeration>
      </Property>
      <Property name="docType" label="Document type" labelKey="docType.LABEL" valueType="enum">
        <Enumeration>
          <Enum value="0" label="Full Text" labelKey="docType.Full.LABEL" />
          <Enum value="1" label="Structured Text" labelKey="docType.Structured.LABEL" />
          <!--Enum value="2" label="XML" labelKey="docType.XML.LABEL" /-->
        </Enumeration>
      </Property>
      <Property name="unity" valueType="enum">
        <Enumeration>
          <Enum value="1" label="Document mode" labelKey="unity.Document.LABEL" />
          <Enum value="0" label="Paragraph mode" labelKey="unity.Paragraph.LABEL" />
        </Enumeration>
      </Property>
      <Property name="para_min" valueType="integer" min="1" />
      <Property name="para_max" valueType="integer" min="1" defaultValue="300" />
      <Property name="language"  valueType="string" defaultValue="en" />
      <Property name="template_name" valueType="string"/>
      <Property name="template_language" valueType="string"/>
      <Property name="template_data" valueType="string"/>
      <Property name="template_project" valueType="string"/>
      <Property name="template_loaded_timestamp" valueType="string"/>
 <!-- =========== document settings tab =========== -->
      <Property name="mtag" valueType="string" />
      <Property name="mclef" valueType="string" />
      
      <!-- =========== Model tab =========== -->
 	  <Property name="store_model_in_as" valueType="boolean" label="Store large models in AS" labelKey="store_model_in_as.LABEL"/>

      <!-- =========== Expert tab =========== -->

      <Property name="concept_count_limit" valueType="integer" min="1" label="Concept count limit" labelKey="concept_count_limit.LABEL"/>
      <Property name="fix_punctuation" valueType="boolean" defaultValue="true" label="Accommodate punctuation errors" labelKey="fix_punctuation.LABEL"/>
      <Property name="fix_spelling" valueType="boolean" defaultValue="false" label="Accommodate spelling for a minimum word character length of" labelKey="fix_spelling.LABEL"/>
      <Property name="spelling_limit" valueType="integer" min="0" defaultValue="5" label="Spelling limit" labelKey="spelling_limit.LABEL"/>
      <Property name="extract_uniterm" valueType="boolean" defaultValue="true" label="Extract uniterms" labelKey="extract_uniterm.LABEL"/>
      <Property name="extract_nonlinguistic" valueType="boolean" defaultValue="true" label="Extract non-linguistic entities" labelKey="extract_nonlinguistic.LABEL"/>
      <Property name="upper_case" valueType="boolean" defaultValue="true" label="Upper-case algorithm" labelKey="upper_case.LABEL"/>
      <Property name="group_names" valueType="boolean" defaultValue="false" label="Group partial and full person names together when possible" labelKey="group_names.LABEL"/>
      <Property name="permutation" valueType="integer" min="0" defaultValue="3" label="Maximum non-function word permutation" labelKey="permutation.LABEL"/>
      <Property name="use_derivation" valueType="boolean" defaultValue="true" label="Use derivation when grouping multiterms" labelKey="use_derivation.LABEL"/>       
      <Property name="jp_algorithm" valueType="integer" min="0" defaultValue="0" label="uncover concepts and patterns through sentiments" labelKey="jp_algorithm_sense.LABEL"/>
      <Property name="jp_algorithm_sense_mode" valueType="integer" min="0" defaultValue="1" label="sentiment mode to apply" labelKey="jp_algorithm_sense_mode.LABEL"/>
    </Properties>
    <!-- Text Mining Node interface -->
    <UserInterface actionHandler="com.spss.tmwb.buildnode.actions.Actions">
      <Icons>
        <Icon type="smallNode" imagePath="sm_tla.gif" />
        <Icon type="standardNode" imagePath="lg_tla.gif" />
      </Icons>
      <Tabs>
      
		
        <Tab label="Fields" labelKey="fieldTab.LABEL" helpLink="textmining/tmfc/tmfc_tla_node_fields.htm">
          <PropertiesPanel>
            <SingleFieldChooserControl property="id_field" label="ID field" labelKey="id_field.LABEL" />
            <SingleFieldChooserControl property="text_field" label="Text field" labelKey="text_field.LABEL" />
            <SingleFieldChooserControl property="language_field"/>
  
			<ComboBoxControl property="docType">
               <Layout rowIncrement="0" gridWidth="1"/>
           </ComboBoxControl>
			
			<PropertiesSubPanel buttonLabel="Settings..." buttonLabelKey="AdditionalSettings.LABEL" helpLink="textmining/tmfc/textmining_fields_docsettings.htm" dialogTitle="Text Mining: Document Settings" dialogTitleKey="DocumentSettingsDialog.LABEL">
				<Enabled>
					<Condition control="docType" op="equals" value="1"/>
				</Enabled>
				<Layout rowIncrement="1" gridColumn="3" gridWidth="1"/>
				<TextAreaControl property="mclef" rows="5" columns="20" labelAbove="true">
					<Enabled>
						<Condition control="docType" op="equals" value="1"/>
					</Enabled>
				</TextAreaControl>
            </PropertiesSubPanel>
			
            <ComboBoxControl property="unity" label="Textual unity" labelKey="unity.LABEL">
            </ComboBoxControl>
			
            <StaticText text="Paragraph mode settings" textKey="paragraph_mode.LABEL">
              <Layout gridColumn="1" gridWidth="1" />
              <Enabled>
                <And>
                  <Condition control="unity" op="equals" value="0" />
                </And>
              </Enabled>
            </StaticText>
            <PropertiesPanel>
              <Layout gridColumn="1" gridWidth="1" />
              <SpinnerControl property="para_min" label="Minimum" labelKey="para_min.LABEL">
                <Layout rowIncrement="0" gridColumn="0" gridWidth="1" />
                <Enabled>
                  <And>
                    <Condition control="unity" op="equals" value="0" />
                  </And>
                </Enabled>
              </SpinnerControl>
              <SpinnerControl property="para_max" label="Maximum" labelKey="para_max.LABEL">
                <Layout gridColumn="2" gridWidth="1" />
                <Enabled>
                  <And>
                    <Condition control="unity" op="equals" value="0" />
                  </And>
                </Enabled>
              </SpinnerControl>
            </PropertiesPanel>
            <PropertiesPanel>
		<ExtensionObjectPanel id="panelTLAResources" panelClass="com.spss.tmwb.buildnode.panels.TLAResourcesPanel"/>
            </PropertiesPanel>
          </PropertiesPanel>
        </Tab>
        	
        <Tab label="Expert" labelKey="expertTAB.LABEL" helpLink="textmining/tmfc/tmfc_tla_node_expert.htm">
            <ExtensionObjectPanel id="expertPanel" panelClass="com.spss.tmwb.buildnode.panels.ExpertPanel"/>
        </Tab>
        
      </Tabs>
    </UserInterface>
    <Execution>
        <Properties>
          <Property name="tempfile" valueType="string">
            <DefaultValue>
              <ServerTempFile basename="tmwbtmp"/>
            </DefaultValue>
          </Property>
        </Properties>
        <!-- <InputFiles>
          <ContainerFile id="spssml" path="${tempfile}.xml" container="model"/>
        </InputFiles> -->
    </Execution>
    <!-- This tells Clementine that the node's output data model is based in mode delegate code (getOutputDataModel -->
    <OutputDataModel method="delegate">
    </OutputDataModel>
  </Node>
</Extension>
