Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Dargones committed Jul 29, 2024
1 parent 6010b73 commit 360bb54
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/acrostics/LanguageModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ public class LanguageModel {

public LanguageModel(String filename) {
filename = filename + FILE_POSTFIX;
System.err.println("In constructor");
try {
Scanner sc = new Scanner(new File(filename));
System.err.println("Reading file: " + filename);
while (sc.hasNextLine()) {
String[] line = sc.nextLine().split("\t");
if ((line.length == 0) || Arrays.stream(TOKENS_TO_IGNORE).anyMatch(token -> token.equals(line[0])))
Expand Down

0 comments on commit 360bb54

Please sign in to comment.