Add Server for request from the web app angular 8
This commit is contained in:
parent
5acf243701
commit
1c36a2676a
@ -29,21 +29,18 @@
|
|||||||
<item name="CAu-Natural-language-processing" type="b2602c69:ProjectViewProjectNode" />
|
<item name="CAu-Natural-language-processing" type="b2602c69:ProjectViewProjectNode" />
|
||||||
<item name="CAu-Natural-language-processing" type="462c0819:PsiDirectoryNode" />
|
<item name="CAu-Natural-language-processing" type="462c0819:PsiDirectoryNode" />
|
||||||
</path>
|
</path>
|
||||||
<path>
|
|
||||||
<item name="CAu-Natural-language-processing" type="b2602c69:ProjectViewProjectNode" />
|
|
||||||
<item name="CAu-Natural-language-processing" type="462c0819:PsiDirectoryNode" />
|
|
||||||
<item name="CAu_NLP_2019" type="462c0819:PsiDirectoryNode" />
|
|
||||||
</path>
|
|
||||||
</expand>
|
</expand>
|
||||||
<select />
|
<select />
|
||||||
</subPane>
|
</subPane>
|
||||||
</pane>
|
</pane>
|
||||||
<pane id="Scope" />
|
|
||||||
<pane id="PackagesPane" />
|
<pane id="PackagesPane" />
|
||||||
|
<pane id="Scope" />
|
||||||
</panes>
|
</panes>
|
||||||
</component>
|
</component>
|
||||||
<component name="PropertiesComponent">
|
<component name="PropertiesComponent">
|
||||||
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
||||||
|
<property name="aspect.path.notification.shown" value="true" />
|
||||||
|
<property name="last_opened_file_path" value="$PROJECT_DIR$/CAu_NLP_2019" />
|
||||||
</component>
|
</component>
|
||||||
<component name="RunDashboard">
|
<component name="RunDashboard">
|
||||||
<option name="ruleStates">
|
<option name="ruleStates">
|
||||||
@ -67,23 +64,25 @@
|
|||||||
<option name="number" value="Default" />
|
<option name="number" value="Default" />
|
||||||
<option name="presentableId" value="Default" />
|
<option name="presentableId" value="Default" />
|
||||||
<updated>1559529262635</updated>
|
<updated>1559529262635</updated>
|
||||||
|
<workItem from="1559824815280" duration="54000" />
|
||||||
</task>
|
</task>
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
|
<component name="TimeTrackingManager">
|
||||||
|
<option name="totallyTimeSpent" value="54000" />
|
||||||
|
</component>
|
||||||
<component name="ToolWindowManager">
|
<component name="ToolWindowManager">
|
||||||
<frame x="-8" y="-8" width="1936" height="1096" extended-state="6" />
|
<frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
|
||||||
<layout>
|
<layout>
|
||||||
<window_info id="Image Layers" />
|
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.25266525" />
|
||||||
<window_info id="Designer" />
|
|
||||||
<window_info id="UI Designer" />
|
|
||||||
<window_info id="Capture Tool" />
|
|
||||||
<window_info id="Favorites" side_tool="true" />
|
|
||||||
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.25" />
|
|
||||||
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
|
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
|
||||||
<window_info anchor="bottom" id="Version Control" />
|
<window_info id="Image Layers" order="2" />
|
||||||
<window_info anchor="bottom" id="Terminal" />
|
<window_info id="Designer" order="3" />
|
||||||
<window_info anchor="bottom" id="Event Log" side_tool="true" />
|
<window_info id="UI Designer" order="4" />
|
||||||
<window_info anchor="bottom" id="Messages" />
|
<window_info id="Capture Tool" order="5" />
|
||||||
|
<window_info id="Favorites" order="6" side_tool="true" />
|
||||||
|
<window_info anchor="bottom" id="Docker" show_stripe_button="false" />
|
||||||
|
<window_info anchor="bottom" id="Database Changes" />
|
||||||
<window_info anchor="bottom" id="Message" order="0" />
|
<window_info anchor="bottom" id="Message" order="0" />
|
||||||
<window_info anchor="bottom" id="Find" order="1" />
|
<window_info anchor="bottom" id="Find" order="1" />
|
||||||
<window_info anchor="bottom" id="Run" order="2" />
|
<window_info anchor="bottom" id="Run" order="2" />
|
||||||
@ -91,16 +90,24 @@
|
|||||||
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
|
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
|
||||||
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
|
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
|
||||||
<window_info anchor="bottom" id="TODO" order="6" />
|
<window_info anchor="bottom" id="TODO" order="6" />
|
||||||
<window_info anchor="right" id="Palette" />
|
<window_info anchor="bottom" id="Terminal" order="7" />
|
||||||
<window_info anchor="right" id="Theme Preview" />
|
<window_info anchor="bottom" id="Event Log" order="8" side_tool="true" />
|
||||||
<window_info anchor="right" id="Maven" />
|
<window_info anchor="bottom" id="Version Control" order="9" />
|
||||||
<window_info anchor="right" id="Capture Analysis" />
|
<window_info anchor="bottom" id="Messages" order="10" />
|
||||||
<window_info anchor="right" id="Palette	" />
|
<window_info anchor="right" id="Database" />
|
||||||
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
|
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
|
||||||
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
|
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
|
||||||
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
|
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
|
||||||
|
<window_info anchor="right" id="Palette" order="3" />
|
||||||
|
<window_info anchor="right" id="Maven" order="4" />
|
||||||
|
<window_info anchor="right" id="Theme Preview" order="5" />
|
||||||
|
<window_info anchor="right" id="Capture Analysis" order="6" />
|
||||||
|
<window_info anchor="right" id="Palette	" order="7" />
|
||||||
</layout>
|
</layout>
|
||||||
</component>
|
</component>
|
||||||
|
<component name="TypeScriptGeneratedFilesManager">
|
||||||
|
<option name="version" value="1" />
|
||||||
|
</component>
|
||||||
<component name="masterDetails">
|
<component name="masterDetails">
|
||||||
<states>
|
<states>
|
||||||
<state key="ProjectJDKs.UI">
|
<state key="ProjectJDKs.UI">
|
||||||
|
@ -1,14 +1,17 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||||
<component name="MavenProjectsManager">
|
<component name="JavaScriptSettings">
|
||||||
<option name="originalFiles">
|
<option name="languageLevel" value="ES6" />
|
||||||
<list>
|
</component>
|
||||||
<option value="$PROJECT_DIR$/pom.xml" />
|
<component name="MavenProjectsManager">
|
||||||
</list>
|
<option name="originalFiles">
|
||||||
</option>
|
<list>
|
||||||
</component>
|
<option value="$PROJECT_DIR$/pom.xml" />
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="11" project-jdk-type="JavaSDK">
|
</list>
|
||||||
<output url="file://$PROJECT_DIR$/out" />
|
</option>
|
||||||
</component>
|
</component>
|
||||||
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="OpenJDK 11.0.2" project-jdk-type="JavaSDK">
|
||||||
|
<output url="file://$PROJECT_DIR$/out" />
|
||||||
|
</component>
|
||||||
</project>
|
</project>
|
@ -1,7 +1,15 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="878e5c11-e08f-43ee-a4df-9d0edd20ed32" name="Default Changelist" comment="" />
|
<list default="true" id="878e5c11-e08f-43ee-a4df-9d0edd20ed32" name="Default Changelist" comment="">
|
||||||
|
<change afterPath="$PROJECT_DIR$/src/main/java/Result.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/../.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/../.idea/workspace.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/pom.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/main/java/App.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/App.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/target/classes/App.class" beforeDir="false" afterPath="$PROJECT_DIR$/target/classes/App.class" afterDir="false" />
|
||||||
|
</list>
|
||||||
<ignored path="$PROJECT_DIR$/out/" />
|
<ignored path="$PROJECT_DIR$/out/" />
|
||||||
<ignored path="$PROJECT_DIR$/target/" />
|
<ignored path="$PROJECT_DIR$/target/" />
|
||||||
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||||
@ -15,20 +23,11 @@
|
|||||||
</component>
|
</component>
|
||||||
<component name="FileEditorManager">
|
<component name="FileEditorManager">
|
||||||
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
|
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
|
||||||
<file pinned="false" current-in-tab="false">
|
|
||||||
<entry file="file://$PROJECT_DIR$/pom.xml">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="102">
|
|
||||||
<caret line="6" column="16" selection-start-line="6" selection-start-column="16" selection-end-line="6" selection-end-column="16" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
</file>
|
|
||||||
<file pinned="false" current-in-tab="true">
|
<file pinned="false" current-in-tab="true">
|
||||||
<entry file="file://$PROJECT_DIR$/src/main/java/App.java">
|
<entry file="file://$PROJECT_DIR$/src/main/java/App.java">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="156">
|
<state relative-caret-position="154">
|
||||||
<caret line="16" column="54" lean-forward="true" selection-start-line="16" selection-start-column="54" selection-end-line="16" selection-end-column="54" />
|
<caret line="135" column="44" lean-forward="true" selection-start-line="135" selection-start-column="44" selection-end-line="135" selection-end-column="44" />
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="imports" expanded="true" />
|
<element signature="imports" expanded="true" />
|
||||||
</folding>
|
</folding>
|
||||||
@ -36,10 +35,38 @@
|
|||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
</file>
|
</file>
|
||||||
|
<file pinned="false" current-in-tab="false">
|
||||||
|
<entry file="file://$PROJECT_DIR$/pom.xml">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="425">
|
||||||
|
<caret line="25" selection-start-line="25" selection-end-line="25" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
<file pinned="false" current-in-tab="false">
|
||||||
|
<entry file="file://$PROJECT_DIR$/src/main/java/Result.java">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="238">
|
||||||
|
<caret line="14" column="31" selection-start-line="14" selection-start-column="31" selection-end-line="14" selection-end-column="31" />
|
||||||
|
<folding>
|
||||||
|
<element signature="e#208#209#0" expanded="true" />
|
||||||
|
<element signature="e#236#237#0" expanded="true" />
|
||||||
|
<element signature="e#278#279#0" expanded="true" />
|
||||||
|
<element signature="e#312#313#0" expanded="true" />
|
||||||
|
<element signature="e#342#343#0" expanded="true" />
|
||||||
|
<element signature="e#368#369#0" expanded="true" />
|
||||||
|
<element signature="e#406#407#0" expanded="true" />
|
||||||
|
<element signature="e#436#437#0" expanded="true" />
|
||||||
|
</folding>
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
<file pinned="false" current-in-tab="false">
|
<file pinned="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/src/main/java/Article.java">
|
<entry file="file://$PROJECT_DIR$/src/main/java/Article.java">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="493">
|
<state relative-caret-position="722">
|
||||||
<caret line="59" column="28" selection-start-line="59" selection-start-column="18" selection-end-line="59" selection-end-column="28" />
|
<caret line="59" column="28" selection-start-line="59" selection-start-column="18" selection-end-line="59" selection-end-column="28" />
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="e#511#512#0" expanded="true" />
|
<element signature="e#511#512#0" expanded="true" />
|
||||||
@ -78,16 +105,37 @@
|
|||||||
</list>
|
</list>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
|
<component name="FindInProjectRecents">
|
||||||
|
<findStrings>
|
||||||
|
<find>args</find>
|
||||||
|
<find>StaticLoggerBinder</find>
|
||||||
|
<find>changeDate</find>
|
||||||
|
<find>System.out.println</find>
|
||||||
|
<find>result</find>
|
||||||
|
<find>key</find>
|
||||||
|
</findStrings>
|
||||||
|
<replaceStrings>
|
||||||
|
<replace>searchs</replace>
|
||||||
|
<replace>words</replace>
|
||||||
|
</replaceStrings>
|
||||||
|
</component>
|
||||||
<component name="Git.Settings">
|
<component name="Git.Settings">
|
||||||
|
<option name="UPDATE_TYPE" value="MERGE" />
|
||||||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
|
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
|
||||||
|
<option name="RECENT_BRANCH_BY_REPOSITORY">
|
||||||
|
<map>
|
||||||
|
<entry key="$PROJECT_DIR$/.." value="master" />
|
||||||
|
</map>
|
||||||
|
</option>
|
||||||
</component>
|
</component>
|
||||||
<component name="IdeDocumentHistory">
|
<component name="IdeDocumentHistory">
|
||||||
<option name="CHANGED_PATHS">
|
<option name="CHANGED_PATHS">
|
||||||
<list>
|
<list>
|
||||||
<option value="$PROJECT_DIR$/CAu_NLP_2019.iml" />
|
<option value="$PROJECT_DIR$/CAu_NLP_2019.iml" />
|
||||||
<option value="$PROJECT_DIR$/pom.xml" />
|
|
||||||
<option value="$PROJECT_DIR$/src/main/java/Article.java" />
|
<option value="$PROJECT_DIR$/src/main/java/Article.java" />
|
||||||
<option value="$PROJECT_DIR$/src/main/java/tfidf.java" />
|
<option value="$PROJECT_DIR$/src/main/java/tfidf.java" />
|
||||||
|
<option value="$PROJECT_DIR$/src/main/java/Result.java" />
|
||||||
|
<option value="$PROJECT_DIR$/pom.xml" />
|
||||||
<option value="$PROJECT_DIR$/src/main/java/App.java" />
|
<option value="$PROJECT_DIR$/src/main/java/App.java" />
|
||||||
</list>
|
</list>
|
||||||
</option>
|
</option>
|
||||||
@ -98,13 +146,14 @@
|
|||||||
<option name="width" value="1400" />
|
<option name="width" value="1400" />
|
||||||
<option name="height" value="1000" />
|
<option name="height" value="1000" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
|
<component name="ProjectLevelVcsManager" settingsEditedManually="true">
|
||||||
|
<OptionsSetting value="false" id="Update" />
|
||||||
|
</component>
|
||||||
<component name="ProjectView">
|
<component name="ProjectView">
|
||||||
<navigator proportions="" version="1">
|
<navigator proportions="" version="1">
|
||||||
<foldersAlwaysOnTop value="true" />
|
<foldersAlwaysOnTop value="true" />
|
||||||
</navigator>
|
</navigator>
|
||||||
<panes>
|
<panes>
|
||||||
<pane id="PackagesPane" />
|
|
||||||
<pane id="Scope" />
|
<pane id="Scope" />
|
||||||
<pane id="ProjectPane">
|
<pane id="ProjectPane">
|
||||||
<subPane>
|
<subPane>
|
||||||
@ -131,24 +180,27 @@
|
|||||||
<item name="main" type="462c0819:PsiDirectoryNode" />
|
<item name="main" type="462c0819:PsiDirectoryNode" />
|
||||||
<item name="java" type="462c0819:PsiDirectoryNode" />
|
<item name="java" type="462c0819:PsiDirectoryNode" />
|
||||||
</path>
|
</path>
|
||||||
<path>
|
|
||||||
<item name="CAu_NLP_2019" type="b2602c69:ProjectViewProjectNode" />
|
|
||||||
<item name="CAu_NLP_2019" type="462c0819:PsiDirectoryNode" />
|
|
||||||
<item name="target" type="462c0819:PsiDirectoryNode" />
|
|
||||||
</path>
|
|
||||||
</expand>
|
</expand>
|
||||||
<select />
|
<select />
|
||||||
</subPane>
|
</subPane>
|
||||||
</pane>
|
</pane>
|
||||||
|
<pane id="PackagesPane" />
|
||||||
</panes>
|
</panes>
|
||||||
</component>
|
</component>
|
||||||
<component name="PropertiesComponent">
|
<component name="PropertiesComponent">
|
||||||
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
|
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
|
||||||
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
||||||
|
<property name="aspect.path.notification.shown" value="true" />
|
||||||
|
<property name="last.edited.regexp" value="" />
|
||||||
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
||||||
|
<property name="node.js.detected.package.eslint" value="true" />
|
||||||
|
<property name="node.js.path.for.package.eslint" value="project" />
|
||||||
|
<property name="node.js.selected.package.eslint" value="(autodetect)" />
|
||||||
<property name="project.structure.last.edited" value="SDKs" />
|
<property name="project.structure.last.edited" value="SDKs" />
|
||||||
<property name="project.structure.proportion" value="0.0" />
|
<property name="project.structure.proportion" value="0.0" />
|
||||||
<property name="project.structure.side.proportion" value="0.2" />
|
<property name="project.structure.side.proportion" value="0.2" />
|
||||||
<property name="settings.editor.selected.configurable" value="preferences.lookFeel" />
|
<property name="restartRequiresConfirmation" value="false" />
|
||||||
|
<property name="settings.editor.selected.configurable" value="preferences.keymap" />
|
||||||
</component>
|
</component>
|
||||||
<component name="RunDashboard">
|
<component name="RunDashboard">
|
||||||
<option name="ruleStates">
|
<option name="ruleStates">
|
||||||
@ -173,6 +225,9 @@
|
|||||||
<recent_temporary>
|
<recent_temporary>
|
||||||
<list>
|
<list>
|
||||||
<item itemvalue="Application.App" />
|
<item itemvalue="Application.App" />
|
||||||
|
<item itemvalue="Application.App" />
|
||||||
|
<item itemvalue="Application.App" />
|
||||||
|
<item itemvalue="Application.App" />
|
||||||
</list>
|
</list>
|
||||||
</recent_temporary>
|
</recent_temporary>
|
||||||
</component>
|
</component>
|
||||||
@ -186,14 +241,22 @@
|
|||||||
<option name="number" value="Default" />
|
<option name="number" value="Default" />
|
||||||
<option name="presentableId" value="Default" />
|
<option name="presentableId" value="Default" />
|
||||||
<updated>1559476475559</updated>
|
<updated>1559476475559</updated>
|
||||||
|
<workItem from="1559824875684" duration="31000" />
|
||||||
|
<workItem from="1559824912264" duration="975000" />
|
||||||
|
<workItem from="1559826436158" duration="669000" />
|
||||||
|
<workItem from="1560222716538" duration="45000" />
|
||||||
|
<workItem from="1560238353777" duration="3020000" />
|
||||||
</task>
|
</task>
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
|
<component name="TimeTrackingManager">
|
||||||
|
<option name="totallyTimeSpent" value="4740000" />
|
||||||
|
</component>
|
||||||
<component name="ToolWindowManager">
|
<component name="ToolWindowManager">
|
||||||
<frame x="-8" y="-8" width="1936" height="1096" extended-state="6" />
|
<frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
|
||||||
<editor active="true" />
|
<editor active="true" />
|
||||||
<layout>
|
<layout>
|
||||||
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.18176973" />
|
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.19189766" />
|
||||||
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
|
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
|
||||||
<window_info id="Image Layers" order="2" />
|
<window_info id="Image Layers" order="2" />
|
||||||
<window_info id="Designer" order="3" />
|
<window_info id="Designer" order="3" />
|
||||||
@ -202,15 +265,17 @@
|
|||||||
<window_info id="Favorites" order="6" side_tool="true" />
|
<window_info id="Favorites" order="6" side_tool="true" />
|
||||||
<window_info anchor="bottom" id="Message" order="0" />
|
<window_info anchor="bottom" id="Message" order="0" />
|
||||||
<window_info anchor="bottom" id="Find" order="1" />
|
<window_info anchor="bottom" id="Find" order="1" />
|
||||||
<window_info active="true" anchor="bottom" id="Run" order="2" sideWeight="0.49520257" visible="true" weight="0.32917964" />
|
<window_info active="true" anchor="bottom" id="Run" order="2" sideWeight="0.49520257" visible="true" weight="0.32827735" />
|
||||||
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
|
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
|
||||||
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
|
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
|
||||||
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
|
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
|
||||||
<window_info anchor="bottom" id="TODO" order="6" />
|
<window_info anchor="bottom" id="TODO" order="6" />
|
||||||
<window_info anchor="bottom" id="Terminal" order="7" sideWeight="0.49946696" weight="0.32917964" />
|
<window_info anchor="bottom" id="Terminal" order="7" sideWeight="0.49946696" weight="0.32917964" />
|
||||||
<window_info anchor="bottom" id="Event Log" order="8" sideWeight="0.50479746" side_tool="true" visible="true" weight="0.32917964" />
|
<window_info anchor="bottom" id="Event Log" order="8" sideWeight="0.50479746" side_tool="true" weight="0.32827735" />
|
||||||
<window_info anchor="bottom" id="Version Control" order="9" />
|
<window_info anchor="bottom" id="Version Control" order="9" />
|
||||||
<window_info anchor="bottom" id="Messages" order="10" sideWeight="0.4978678" weight="0.32917964" />
|
<window_info anchor="bottom" id="Messages" order="10" sideWeight="0.4978678" weight="0.32827735" />
|
||||||
|
<window_info anchor="bottom" id="Docker" order="11" show_stripe_button="false" />
|
||||||
|
<window_info anchor="bottom" id="Database Changes" order="12" />
|
||||||
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
|
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
|
||||||
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
|
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
|
||||||
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
|
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
|
||||||
@ -219,6 +284,7 @@
|
|||||||
<window_info anchor="right" id="Theme Preview" order="5" />
|
<window_info anchor="right" id="Theme Preview" order="5" />
|
||||||
<window_info anchor="right" id="Capture Analysis" order="6" />
|
<window_info anchor="right" id="Capture Analysis" order="6" />
|
||||||
<window_info anchor="right" id="Palette	" order="7" />
|
<window_info anchor="right" id="Palette	" order="7" />
|
||||||
|
<window_info anchor="right" id="Database" order="8" />
|
||||||
</layout>
|
</layout>
|
||||||
<layout-to-restore>
|
<layout-to-restore>
|
||||||
<window_info id="Image Layers" order="0" />
|
<window_info id="Image Layers" order="0" />
|
||||||
@ -249,24 +315,30 @@
|
|||||||
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="7" weight="0.25" />
|
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="7" weight="0.25" />
|
||||||
</layout-to-restore>
|
</layout-to-restore>
|
||||||
</component>
|
</component>
|
||||||
|
<component name="TypeScriptGeneratedFilesManager">
|
||||||
|
<option name="version" value="1" />
|
||||||
|
</component>
|
||||||
<component name="editorHistoryManager">
|
<component name="editorHistoryManager">
|
||||||
<entry file="file://$PROJECT_DIR$/CAu_NLP_2019.iml">
|
<entry file="file://$PROJECT_DIR$/CAu_NLP_2019.iml" />
|
||||||
|
<entry file="file://$PROJECT_DIR$/src/main/java/TFIDF.java">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="17">
|
<state relative-caret-position="357">
|
||||||
<caret line="1" column="41" selection-start-line="1" selection-start-column="41" selection-end-line="1" selection-end-column="41" />
|
<caret line="21" column="7" lean-forward="true" selection-start-line="21" selection-start-column="7" selection-end-line="21" selection-end-column="7" />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/pom.xml">
|
<entry file="file://$PROJECT_DIR$/target/classes/App.class">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="102">
|
<state>
|
||||||
<caret line="6" column="16" selection-start-line="6" selection-start-column="16" selection-end-line="6" selection-end-column="16" />
|
<folding>
|
||||||
|
<element signature="e#0#7649#0" expanded="true" />
|
||||||
|
</folding>
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/src/main/java/Article.java">
|
<entry file="file://$PROJECT_DIR$/src/main/java/Article.java">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="493">
|
<state relative-caret-position="722">
|
||||||
<caret line="59" column="28" selection-start-line="59" selection-start-column="18" selection-end-line="59" selection-end-column="28" />
|
<caret line="59" column="28" selection-start-line="59" selection-start-column="18" selection-end-line="59" selection-end-column="28" />
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="e#511#512#0" expanded="true" />
|
<element signature="e#511#512#0" expanded="true" />
|
||||||
@ -295,17 +367,34 @@
|
|||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/src/main/java/TFIDF.java">
|
<entry file="file://$PROJECT_DIR$/src/main/java/Result.java">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="357">
|
<state relative-caret-position="238">
|
||||||
<caret line="21" column="7" lean-forward="true" selection-start-line="21" selection-start-column="7" selection-end-line="21" selection-end-column="7" />
|
<caret line="14" column="31" selection-start-line="14" selection-start-column="31" selection-end-line="14" selection-end-column="31" />
|
||||||
|
<folding>
|
||||||
|
<element signature="e#208#209#0" expanded="true" />
|
||||||
|
<element signature="e#236#237#0" expanded="true" />
|
||||||
|
<element signature="e#278#279#0" expanded="true" />
|
||||||
|
<element signature="e#312#313#0" expanded="true" />
|
||||||
|
<element signature="e#342#343#0" expanded="true" />
|
||||||
|
<element signature="e#368#369#0" expanded="true" />
|
||||||
|
<element signature="e#406#407#0" expanded="true" />
|
||||||
|
<element signature="e#436#437#0" expanded="true" />
|
||||||
|
</folding>
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/pom.xml">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="425">
|
||||||
|
<caret line="25" selection-start-line="25" selection-end-line="25" />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/src/main/java/App.java">
|
<entry file="file://$PROJECT_DIR$/src/main/java/App.java">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="156">
|
<state relative-caret-position="154">
|
||||||
<caret line="16" column="54" lean-forward="true" selection-start-line="16" selection-start-column="54" selection-end-line="16" selection-end-column="54" />
|
<caret line="135" column="44" lean-forward="true" selection-start-line="135" selection-start-column="44" selection-end-line="135" selection-end-column="44" />
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="imports" expanded="true" />
|
<element signature="imports" expanded="true" />
|
||||||
</folding>
|
</folding>
|
||||||
@ -377,6 +466,7 @@
|
|||||||
</state>
|
</state>
|
||||||
<state key="ProjectJDKs.UI">
|
<state key="ProjectJDKs.UI">
|
||||||
<settings>
|
<settings>
|
||||||
|
<last-edited>OpenJDK 11.0.2</last-edited>
|
||||||
<splitter-proportions>
|
<splitter-proportions>
|
||||||
<option name="proportions">
|
<option name="proportions">
|
||||||
<list>
|
<list>
|
||||||
|
@ -4,24 +4,38 @@
|
|||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
|
||||||
<groupId>org.jsoup</groupId>
|
<dependency>
|
||||||
<artifactId>jsoup</artifactId>
|
<groupId>org.jsoup</groupId>
|
||||||
<version>1.11.3</version>
|
<artifactId>jsoup</artifactId>
|
||||||
</dependency>
|
<version>1.11.3</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.sparkjava</groupId>
|
||||||
|
<artifactId>spark-core</artifactId>
|
||||||
|
<version>2.8.0</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.google.code.gson</groupId>
|
||||||
|
<artifactId>gson</artifactId>
|
||||||
|
<version>2.8.5</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>3.8.1</version>
|
<version>3.8.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>1.8</source>
|
<source>1.8</source>
|
||||||
<target>1.8</target>
|
<target>1.8</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<groupId>PQMAN</groupId>
|
<groupId>PQMAN</groupId>
|
||||||
<artifactId>CAu_NLP_2019</artifactId>
|
<artifactId>CAu_NLP_2019</artifactId>
|
||||||
|
@ -1,166 +1,154 @@
|
|||||||
|
import com.google.gson.Gson;
|
||||||
|
import org.jsoup.Jsoup;
|
||||||
import java.io.IOException;
|
import org.jsoup.nodes.Document;
|
||||||
import java.text.DecimalFormat;
|
import org.jsoup.nodes.Element;
|
||||||
import java.util.*;
|
import org.jsoup.select.Elements;
|
||||||
|
|
||||||
import org.jsoup.Jsoup;
|
import java.text.DecimalFormat;
|
||||||
import org.jsoup.nodes.Document;
|
import java.util.ArrayList;
|
||||||
import org.jsoup.nodes.Element;
|
import java.util.Arrays;
|
||||||
import org.jsoup.select.Elements;
|
import java.util.List;
|
||||||
|
|
||||||
public class App {
|
import static spark.Spark.get;
|
||||||
public static void main(String[] args) throws Exception {
|
import static spark.Spark.port;
|
||||||
String url[] = {"https://www.thesun.co.uk/?s=", "https://www.bbc.co.uk/search?q=", "https://www.skysports.com/search?q="};
|
|
||||||
|
public class App {
|
||||||
List<List<String>> documents = new ArrayList<>();
|
|
||||||
List<List<String>> result = new ArrayList<>();
|
public static void main(String[] args) {
|
||||||
List<String> result2 = new ArrayList<>();
|
port(8080);
|
||||||
String document;
|
get("/search", (req, res) -> {
|
||||||
List<String> goodUrl = new ArrayList<>();
|
Gson gson = new Gson();
|
||||||
Article data = new Article();
|
String[] words = req.queryParams("s").split("/+");
|
||||||
|
ArrayList<Result> results = getResults(words);
|
||||||
Document doc = null;
|
return gson.toJson(results);
|
||||||
Elements element = null;
|
});
|
||||||
|
}
|
||||||
Scanner scanner = new Scanner(System.in);
|
|
||||||
System.out.print("Please type keywords : ");
|
private static ArrayList<Result> getResults(String[] words) throws Exception {
|
||||||
String key[] = scanner.nextLine().split(",");
|
String[] url = {"https://www.thesun.co.uk/?s=", "https://www.bbc.co.uk/search?q=", "https://www.skysports.com/search?q="};
|
||||||
scanner.close();
|
|
||||||
for (int j = 0; j < url.length; j++) {
|
List<List<String>> documents = new ArrayList<>();
|
||||||
for (int i = 0; i < key.length; i++) {
|
List<List<String>> result = new ArrayList<>();
|
||||||
String urlTmp = url[j] + key[i];
|
List<String> result2 = new ArrayList<>();
|
||||||
doc = Jsoup.connect(urlTmp).execute().parse(); // Document에 url 페이지의 데이터를 가져온다.
|
String document;
|
||||||
if (url[j].equals("https://www.thesun.co.uk/?s=")) {
|
List<String> goodUrl = new ArrayList<>();
|
||||||
element = doc.select("div.search-results-wrap");
|
Article data = new Article();
|
||||||
for (Element el : element.select(".teaser-item")) {
|
|
||||||
if (el.select("p").text().toLowerCase().contains(key[i].toLowerCase())) {
|
ArrayList<Result> results = new ArrayList<>();
|
||||||
data.setHeadline(el.select("p").text());
|
Document doc = null;
|
||||||
Elements elUrl = el.select(".teaser__copy-container a");
|
Elements element = null;
|
||||||
data.setUrl(elUrl.first().absUrl("href"));
|
|
||||||
String temp = el.select(".search-date").text();
|
for (String s : url) {
|
||||||
data.setDate(changeDate(temp));
|
for (String word : words) {
|
||||||
data.setSite("The Sun");
|
String urlTmp = s + word;
|
||||||
|
doc = Jsoup.connect(urlTmp).execute().parse(); // Document에 url 페이지의 데이터를 가져온다.
|
||||||
|
if (s.equals("https://www.thesun.co.uk/?s=")) {
|
||||||
}
|
element = doc.select("div.search-results-wrap");
|
||||||
}
|
for (Element el : element.select(".teaser-item")) {
|
||||||
}
|
if (el.select("p").text().toLowerCase().contains(word.toLowerCase())) {
|
||||||
if (url[j].equals("https://www.bbc.co.uk/search?q=")) {
|
data.setHeadline(el.select("p").text());
|
||||||
element = doc.select("section.search-content");
|
Elements elUrl = el.select(".teaser__copy-container a");
|
||||||
for (Element el : element.select("li[data-result-number]")) {
|
data.setUrl(elUrl.first().absUrl("href"));
|
||||||
data.setHeadline(el.select("h1").select("a").text());
|
String temp = el.select(".search-date").text();
|
||||||
Elements elUrl = el.select("a[href]");
|
data.setDate(changeDate(temp));
|
||||||
data.setUrl(elUrl.first().absUrl("href"));
|
data.setSite("The Sun");
|
||||||
String temp = el.select(".display-date").text();
|
|
||||||
data.setDate(changeDate(temp));
|
|
||||||
data.setSite("BBC");
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (url[j].equals("https://www.skysports.com/search?q=")) {
|
if (s.equals("https://www.bbc.co.uk/search?q=")) {
|
||||||
element = doc.select("div.news-list");
|
element = doc.select("section.search-content");
|
||||||
for (Element el : element.select("div.news-list__item")) {
|
for (Element el : element.select("li[data-result-number]")) {
|
||||||
data.setHeadline(el.select("h4").select("a").text());
|
data.setHeadline(el.select("h1").select("a").text());
|
||||||
Elements elUrl = el.select("a[href]");
|
Elements elUrl = el.select("a[href]");
|
||||||
data.setUrl(elUrl.first().absUrl("href"));
|
data.setUrl(elUrl.first().absUrl("href"));
|
||||||
String temp = el.select(".label__timestamp").text();
|
String temp = el.select(".display-date").text();
|
||||||
data.setDate(changeDate2(temp));
|
data.setDate(changeDate(temp));
|
||||||
data.setSite("SKYSPORTS");
|
data.setSite("BBC");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
if (s.equals("https://www.skysports.com/search?q=")) {
|
||||||
}
|
element = doc.select("div.news-list");
|
||||||
|
for (Element el : element.select("div.news-list__item")) {
|
||||||
String content = "";
|
data.setHeadline(el.select("h4").select("a").text());
|
||||||
for(int i = 0; i < data.getHowManyData(); i++) {
|
Elements elUrl = el.select("a[href]");
|
||||||
content = "";
|
data.setUrl(elUrl.first().absUrl("href"));
|
||||||
try {
|
String temp = el.select(".label__timestamp").text();
|
||||||
doc = Jsoup.connect(data.getUrl(i)).execute().parse();
|
data.setDate(changeDate2(temp));
|
||||||
if (data.getSite(i) == "The Sun") {
|
data.setSite("SKYSPORTS");
|
||||||
element = doc.select("div.article__content");
|
}
|
||||||
for (Element el : element.select("p")) {
|
}
|
||||||
content += el.text();
|
}
|
||||||
}
|
}
|
||||||
data.setContent(content);
|
|
||||||
} else if (data.getSite(i) == "BBC") {
|
StringBuilder content = new StringBuilder();
|
||||||
element = doc.select("div#story-body");
|
for (int i = 0; i < data.getHowManyData(); i++) {
|
||||||
for (Element el : element.select("p")) {
|
content = new StringBuilder();
|
||||||
content += el.text();
|
try {
|
||||||
}
|
doc = Jsoup.connect(data.getUrl(i)).execute().parse();
|
||||||
data.setContent(content);
|
switch (data.getSite(i)) {
|
||||||
} else if (data.getSite(i) == "SKYSPORTS") {
|
case "The Sun":
|
||||||
element = doc.select("div.article__body");
|
element = doc.select("div.article__content");
|
||||||
for (Element el : element.select("p")) {
|
for (Element el : element.select("p")) {
|
||||||
if (!el.hasClass("widge-marketing__text")) {
|
content.append(el.text());
|
||||||
content += el.text();
|
}
|
||||||
}
|
data.setContent(content.toString());
|
||||||
}
|
break;
|
||||||
data.setContent(content);
|
case "BBC":
|
||||||
}
|
element = doc.select("div#story-body");
|
||||||
if (data.getContent(i).length() > 0){
|
for (Element el : element.select("p")) {
|
||||||
/*
|
content.append(el.text());
|
||||||
System.out.println(data.getDate(i));
|
}
|
||||||
System.out.println(data.getHeadline(i));
|
data.setContent(content.toString());
|
||||||
System.out.println(data.getUrl(i));
|
break;
|
||||||
System.out.println(data.getSite(i));
|
case "SKYSPORTS":
|
||||||
*/
|
element = doc.select("div.article__body");
|
||||||
document = data.getContent((i)).replaceAll("\\s+",",");
|
for (Element el : element.select("p")) {
|
||||||
goodUrl.add(data.getUrl(i));
|
if (!el.hasClass("widge-marketing__text")) {
|
||||||
documents.add(new ArrayList<String>(Arrays.asList(document.split(","))));
|
content.append(el.text());
|
||||||
}
|
}
|
||||||
else
|
}
|
||||||
System.out.println("No content: " + data.getUrl(i));
|
data.setContent(content.toString());
|
||||||
}
|
break;
|
||||||
catch (Exception e) {
|
}
|
||||||
System.out.println("Something went wrong.: " + e);
|
if (data.getContent(i).length() > 0) {
|
||||||
}
|
document = data.getContent((i)).replaceAll("\\s+", ",");
|
||||||
}
|
goodUrl.add(data.getUrl(i));
|
||||||
for (int i = 0; i < documents.size(); i++){
|
documents.add(new ArrayList<String>(Arrays.asList(document.split(","))));
|
||||||
DecimalFormat df = new DecimalFormat("#.####");
|
} else
|
||||||
TFIDF calculator = new TFIDF();
|
System.out.println("No content: " + data.getUrl(i));
|
||||||
double tfidf = calculator.tfIdf(documents.get(i), documents, key[0]);
|
} catch (Exception e) {
|
||||||
result.add(Arrays.asList((df.format(tfidf)), goodUrl.get(i)));
|
System.out.println("Something went wrong.: " + e);
|
||||||
}
|
}
|
||||||
for (int i = 0; i < result.size(); i++){
|
}
|
||||||
System.out.println("TF-IDF: " + result.get(i).get(0) + " Url: " + result.get(i).get(1));
|
for (int i = 0; i < documents.size(); i++) {
|
||||||
}
|
DecimalFormat df = new DecimalFormat("#.####");
|
||||||
double max;
|
TFIDF calculator = new TFIDF();
|
||||||
int pos;
|
double tfidf = calculator.tfIdf(documents.get(i), documents, words[0]);
|
||||||
while (result.size() > 0){
|
results.add(new Result(df.format(tfidf), goodUrl.get(i)));
|
||||||
pos = 0;
|
}
|
||||||
max = Double.parseDouble(result.get(0).get(0));
|
System.out.println("End Request");
|
||||||
for (int i2 = 0; i2 < result.size(); i2++){
|
return results;
|
||||||
if (Double.compare(max, Double.parseDouble(result.get(i2).get(0))) < 0){
|
}
|
||||||
max = Double.parseDouble(result.get(i2).get(0));
|
|
||||||
pos = i2;
|
private static int changeDate2(String date) {
|
||||||
}
|
date = date.substring(0, 2) + date.substring(2 + 1);
|
||||||
}
|
date = date.substring(0, 4) + date.substring(4 + 1);
|
||||||
result2.add(result.get(pos).get(1));
|
String year = date.substring(4, 8);
|
||||||
result.remove(pos);
|
String month = date.substring(2, 4);
|
||||||
}
|
String day = date.substring(0, 2);
|
||||||
for (int i = 0; i < result2.size(); i++){
|
String fdate = year + month + day;
|
||||||
System.out.println("Url: " + result2.get(i));
|
|
||||||
}
|
int mydate = Integer.parseInt(fdate);
|
||||||
|
return mydate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int changeDate2(String date) {
|
private static int changeDate(String date) {
|
||||||
date = date.substring(0, 2) + date.substring(2 + 1);
|
int formdate = 0;
|
||||||
date = date.substring(0, 4) + date.substring(4 + 1);
|
String[] sp = date.split(" ");
|
||||||
String year = date.substring(4, 8);
|
formdate = 0;
|
||||||
String month = date.substring(2,4);
|
return formdate;
|
||||||
String day = date.substring(0, 2);
|
}
|
||||||
String fdate = year + month + day;
|
|
||||||
|
|
||||||
int mydate = Integer.parseInt(fdate);
|
|
||||||
return mydate;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static int changeDate(String date) {
|
|
||||||
int formdate = 0;
|
|
||||||
String sp[] = date.split(" ");
|
|
||||||
formdate = 0;
|
|
||||||
return formdate;
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
26
CAu_NLP_2019/src/main/java/Result.java
Normal file
26
CAu_NLP_2019/src/main/java/Result.java
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
public class Result {
|
||||||
|
|
||||||
|
private String tfidf;
|
||||||
|
private String url;
|
||||||
|
|
||||||
|
public Result(String tfidf, String url) {
|
||||||
|
this.tfidf = tfidf;
|
||||||
|
this.url = url;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTfidf() {
|
||||||
|
return tfidf;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTfidf(String tfidf) {
|
||||||
|
this.tfidf = tfidf;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUrl() {
|
||||||
|
return url;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUrl(String url) {
|
||||||
|
this.url = url;
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user