Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
factchecksnlp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Himadri Kumari
factchecksnlp
Commits
d6baf837
There was an error fetching the commit references. Please try again later.
Commit
d6baf837
authored
Jan 12, 2020
by
RahulSherikar
Browse files
Options
Downloads
Patches
Plain Diff
read file
parent
480a28b6
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.idea/misc.xml
+1
-1
1 addition, 1 deletion
.idea/misc.xml
SNLP2019_test.tsv
+1489
-0
1489 additions, 0 deletions
SNLP2019_test.tsv
src/main/java/Main.java
+29
-0
29 additions, 0 deletions
src/main/java/Main.java
with
1519 additions
and
1 deletion
.idea/misc.xml
+
1
−
1
View file @
d6baf837
...
...
@@ -8,7 +8,7 @@
</list>
</option>
</component>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_8"
project-jdk-name=
"1
.8
"
project-jdk-type=
"JavaSDK"
>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_8"
default=
"false"
project-jdk-name=
"1
2
"
project-jdk-type=
"JavaSDK"
>
<output
url=
"file://$PROJECT_DIR$/out"
/>
</component>
</project>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
SNLP2019_test.tsv
0 → 100644
+
1489
−
0
View file @
d6baf837
This diff is collapsed.
Click to expand it.
src/main/java/Main.java
+
29
−
0
View file @
d6baf837
import
java.io.BufferedReader
;
import
java.io.File
;
import
java.io.FileReader
;
import
java.io.IOException
;
import
java.util.ArrayList
;
public
class
Main
{
public
static
void
main
(
String
args
[])
throws
IOException
{
System
.
out
.
println
(
"Hi"
);
File
file
=
new
File
(
"SNLP2019_test.tsv"
);
BufferedReader
br
=
new
BufferedReader
(
new
FileReader
(
file
));
ArrayList
<
String
>
input
=
new
ArrayList
<>();
ArrayList
<
String
>
id
=
new
ArrayList
<>();
String
s
=
""
;
while
((
s
=
br
.
readLine
())
!=
null
)
{
String
inp
[]
=
s
.
split
(
"\\t+"
);
input
.
add
(
inp
[
1
]);
id
.
add
(
inp
[
0
]);
}
int
i
=
0
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment