-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f844e75
commit 9c3cce8
Showing
1 changed file
with
13 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
Batch script for Named Entity Recognition | ||
|
||
# Folder Setup | ||
── project folder\n | ||
├── stanford-er-2018-02-27\n | ||
├── file1.txt | ||
├── file2.txt | ||
├── file1.txt | ||
├── file2.txt | ||
│ ├── cgi | ||
│ │ ├── cgi0.sh | ||
|
||
|
||
── project folder | ||
## Folder Setup | ||
This script, as is, will run Stanford NER on every text file within a folder. This expects that the stanford-ner-2018-02-27 folder, all of the text files, and the batchner.sh script are all within the same folder. | ||
|
||
── project folder | ||
├── stanford-ner-2018-02-27 | ||
├── file1.txt | ||
├── file2.txt | ||
├── file1.txt | ||
├── file2.txt | ||
├── batchner.sh | ||
├── file1.txt | ||
├── file2.txt | ||
├── file3.txt | ||
├── file4.txt | ||
|
||
── pr | ||
## Running the Script | ||
In terminal, navigate to the folder containing these files and type `sh batchner.sh`. This will take a bit to run, but will print all of the results into a file called `entities.csv` | ||
|
||
## Notes | ||
As new versions of Stanford NER come out, the filepath will change and will need to be updated |