Author: kwright
Date: Thu Jan 28 12:53:30 2016
New Revision: 1727328
URL: http://svn.apache.org/viewvc?rev=1727328&view=rev
Log:
Add javascript check for sentence and tokenization model check
Modified:
manifoldcf/branches/CONNECTORS-1270/connectors/opennlp/connector/src/main/native2ascii/org/apache/manifoldcf/agents/transformation/opennlp/common_en_US.properties
manifoldcf/branches/CONNECTORS-1270/connectors/opennlp/connector/src/main/native2ascii/org/apache/manifoldcf/agents/transformation/opennlp/common_ja_JP.properties
manifoldcf/branches/CONNECTORS-1270/connectors/opennlp/connector/src/main/native2ascii/org/apache/manifoldcf/agents/transformation/opennlp/common_zh_CN.properties
manifoldcf/branches/CONNECTORS-1270/connectors/opennlp/connector/src/main/resources/org/apache/manifoldcf/agents/transformation/opennlp/editSpecification.js
Modified:
manifoldcf/branches/CONNECTORS-1270/connectors/opennlp/connector/src/main/native2ascii/org/apache/manifoldcf/agents/transformation/opennlp/common_en_US.properties
URL:
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1270/connectors/opennlp/connector/src/main/native2ascii/org/apache/manifoldcf/agents/transformation/opennlp/common_en_US.properties?rev=1727328&r1=1727327&r2=1727328&view=diff
==============================================================================
---
manifoldcf/branches/CONNECTORS-1270/connectors/opennlp/connector/src/main/native2ascii/org/apache/manifoldcf/agents/transformation/opennlp/common_en_US.properties
(original)
+++
manifoldcf/branches/CONNECTORS-1270/connectors/opennlp/connector/src/main/native2ascii/org/apache/manifoldcf/agents/transformation/opennlp/common_en_US.properties
Thu Jan 28 12:53:30 2016
@@ -20,7 +20,8 @@ OpenNlpExtractor.TokenizerModelPath=Toke
OpenNlpExtractor.FinderModelList=Finder model list:
OpenNlpExtractor.ParameterName=Parameter name
OpenNlpExtractor.ModelFile=Model file
-
+OpenNlpExtractor.YouMustSpecifyASentenceModel=You must specify a sentence model
+OpenNlpExtractor.YouMustSpecifyATokenizationModel=You must specify a
tokenization model
OpenNlpExtractor.PleaseProvideAParameterName=Please provide a parameter name
OpenNlpExtractor.PleaseSelectAModelFile=Please select a finder model file
OpenNlpExtractor.Delete=Delete
Modified:
manifoldcf/branches/CONNECTORS-1270/connectors/opennlp/connector/src/main/native2ascii/org/apache/manifoldcf/agents/transformation/opennlp/common_ja_JP.properties
URL:
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1270/connectors/opennlp/connector/src/main/native2ascii/org/apache/manifoldcf/agents/transformation/opennlp/common_ja_JP.properties?rev=1727328&r1=1727327&r2=1727328&view=diff
==============================================================================
---
manifoldcf/branches/CONNECTORS-1270/connectors/opennlp/connector/src/main/native2ascii/org/apache/manifoldcf/agents/transformation/opennlp/common_ja_JP.properties
(original)
+++
manifoldcf/branches/CONNECTORS-1270/connectors/opennlp/connector/src/main/native2ascii/org/apache/manifoldcf/agents/transformation/opennlp/common_ja_JP.properties
Thu Jan 28 12:53:30 2016
@@ -20,7 +20,8 @@ OpenNlpExtractor.TokenizerModelPath=Toke
OpenNlpExtractor.FinderModelList=Finder model list:
OpenNlpExtractor.ParameterName=Parameter name
OpenNlpExtractor.ModelFile=Model file
-
+OpenNlpExtractor.YouMustSpecifyASentenceModel=You must specify a sentence model
+OpenNlpExtractor.YouMustSpecifyATokenizationModel=You must specify a
tokenization model
OpenNlpExtractor.PleaseProvideAParameterName=Please provide a parameter name
OpenNlpExtractor.PleaseSelectAModelFile=Please select a finder model file
OpenNlpExtractor.Delete=Delete
Modified:
manifoldcf/branches/CONNECTORS-1270/connectors/opennlp/connector/src/main/native2ascii/org/apache/manifoldcf/agents/transformation/opennlp/common_zh_CN.properties
URL:
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1270/connectors/opennlp/connector/src/main/native2ascii/org/apache/manifoldcf/agents/transformation/opennlp/common_zh_CN.properties?rev=1727328&r1=1727327&r2=1727328&view=diff
==============================================================================
---
manifoldcf/branches/CONNECTORS-1270/connectors/opennlp/connector/src/main/native2ascii/org/apache/manifoldcf/agents/transformation/opennlp/common_zh_CN.properties
(original)
+++
manifoldcf/branches/CONNECTORS-1270/connectors/opennlp/connector/src/main/native2ascii/org/apache/manifoldcf/agents/transformation/opennlp/common_zh_CN.properties
Thu Jan 28 12:53:30 2016
@@ -20,7 +20,8 @@ OpenNlpExtractor.TokenizerModelPath=Toke
OpenNlpExtractor.FinderModelList=Finder model list:
OpenNlpExtractor.ParameterName=Parameter name
OpenNlpExtractor.ModelFile=Model file
-
+OpenNlpExtractor.YouMustSpecifyASentenceModel=You must specify a sentence model
+OpenNlpExtractor.YouMustSpecifyATokenizationModel=You must specify a
tokenization model
OpenNlpExtractor.PleaseProvideAParameterName=Please provide a parameter name
OpenNlpExtractor.PleaseSelectAModelFile=Please select a finder model file
OpenNlpExtractor.Delete=Delete
Modified:
manifoldcf/branches/CONNECTORS-1270/connectors/opennlp/connector/src/main/resources/org/apache/manifoldcf/agents/transformation/opennlp/editSpecification.js
URL:
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1270/connectors/opennlp/connector/src/main/resources/org/apache/manifoldcf/agents/transformation/opennlp/editSpecification.js?rev=1727328&r1=1727327&r2=1727328&view=diff
==============================================================================
---
manifoldcf/branches/CONNECTORS-1270/connectors/opennlp/connector/src/main/resources/org/apache/manifoldcf/agents/transformation/opennlp/editSpecification.js
(original)
+++
manifoldcf/branches/CONNECTORS-1270/connectors/opennlp/connector/src/main/resources/org/apache/manifoldcf/agents/transformation/opennlp/editSpecification.js
Thu Jan 28 12:53:30 2016
@@ -47,6 +47,20 @@ function s${SEQNUM}_DeleteModel(n)
function s${SEQNUM}_checkSpecificationForSave()
{
+ if (editjob.s${SEQNUM}_smodelpath.value == "")
+ {
+
alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('OpenNlpExtractor.YouMustSpecifyASentenceModel'))");
+
SelectSequencedTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('OpenNlpExtractor.OpenNLPTabName'))",
${SEQNUM});
+ editjob.s${SEQNUM}_smodelpath.focus();
+ return false;
+ }
+ if (editjob.s${SEQNUM}_tmodelpath.value == "")
+ {
+
alert("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('OpenNlpExtractor.YouMustSpecifyATokenizationModel'))");
+
SelectSequencedTab("$Encoder.bodyJavascriptEscape($ResourceBundle.getString('OpenNlpExtractor.OpenNLPTabName'))",
${SEQNUM});
+ editjob.s${SEQNUM}_tmodelpath.focus();
+ return false;
+ }
return true;
}