GithubHelp home page GithubHelp logo

alexerdmann / her Goto Github PK

View Code? Open in Web Editor NEW
38.0 38.0 6.0 72.92 MB

Humanities Entity Recognition: robust, practical, efficient Named Entity Recognition for today's digital humanist

License: GNU General Public License v3.0

Smalltalk 0.21% Emacs Lisp 1.93% JavaScript 0.09% NewLisp 0.18% Perl 8.18% Ruby 0.19% Slash 0.04% SystemVerilog 0.02% Python 53.63% Shell 5.27% Jupyter Notebook 30.26%

her's People

Contributors

alexerdmann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

her's Issues

Not find the fts file

Hello,

In the step 5, we have to use files with fts extension but I don"t understand how can I get these files. How to do it? Thank you.
The line command:

sh Scripts/tag_and_rank.sh Models/CRF/best_seed.cls Data/Splits/fullCorpus.seed-$seed_size.unannotated.fts Data/Splits/fullCorpus.seed-$seed_size.unannotated.probs Data/Splits/fullCorpus.seed-$seed_size.unannotated.fts Data/Splits/fullCorpus.seed-$seed_size.seed.fts $sortMethod Models/RankedSents/fullCorpus.seed-$seed_size.$sortMethod None $entities

step4 has a error

(base) zhenshengli@ZhenshengdeMacBook-Pro her % python Scripts/cross_validation.py -testable Data/Splits/fullCorpus.seed-$seed_size.seed -fullCorpus Data/Prepared/fullCorpus.txt -identify_best_feats True -train_best True -unannotated Data/Splits/fullCorpus.seed-$seed_size.unannotated

Scripts/getFeatures_train_test.sh: line 15: crfsuite: command not found
Scripts/getFeatures_train_test.sh: line 19: crfsuite: command not found
Traceback (most recent call last):
File "Scripts/cross_validation.py", line 154, in
bestSet, bestScore = get_best_feature_set(number_of_folds, alwaysTrain, testable, POSSIBLE_FEATS, fullCorpus)
File "Scripts/cross_validation.py", line 123, in get_best_feature_set
score = n_way_cross_validation(feature_set, alwaysTrain, number_of_folds, testable, fullCorpus)
File "Scripts/cross_validation.py", line 99, in n_way_cross_validation
F, total = custom_eval_biased_recall_exclusive(test, predictions)
File "/Users/zhenshengli/Downloads/HER-master/her/Scripts/customEval.py", line 414, in custom_eval_biased_recall_exclusive
list_recall = custom_list_eval_exclusive(test, predictions)
File "/Users/zhenshengli/Downloads/HER-master/her/Scripts/customEval.py", line 118, in custom_list_eval_exclusive
predLine = predictions[index+predDiff]
IndexError: list index out of range
(base) zhenshengli@ZhenshengdeMacBook-Pro her % python Scripts/cross_validation.py -testable Data/Splits/fullCorpus.seed-$seed_size.seed -fullCorpus Data/Prepared/fullCorpus.txt -identify_best_feats True -train_best True -unannotated Data/Splits/fullCorpus.seed-$seed_size.unannotated

Scripts/getFeatures_train_test.sh: line 15: crfsuite: command not found
Scripts/getFeatures_train_test.sh: line 19: crfsuite: command not found
Traceback (most recent call last):
File "Scripts/cross_validation.py", line 154, in
bestSet, bestScore = get_best_feature_set(number_of_folds, alwaysTrain, testable, POSSIBLE_FEATS, fullCorpus)
File "Scripts/cross_validation.py", line 123, in get_best_feature_set
score = n_way_cross_validation(feature_set, alwaysTrain, number_of_folds, testable, fullCorpus)
File "Scripts/cross_validation.py", line 99, in n_way_cross_validation
F, total = custom_eval_biased_recall_exclusive(test, predictions)
File "/Users/zhenshengli/Downloads/HER-master/her/Scripts/customEval.py", line 414, in custom_eval_biased_recall_exclusive
list_recall = custom_list_eval_exclusive(test, predictions)
File "/Users/zhenshengli/Downloads/HER-master/her/Scripts/customEval.py", line 118, in custom_list_eval_exclusive
predLine = predictions[index+predDiff]
IndexError: list index out of range
(base) zhenshengli@ZhenshengdeMacBook-Pro her % python Scripts/cross_validation.py -testable Data/Splits/fullCorpus.seed-$seed_size.seed -fullCorpus Data/Prepared/fullCorpus.txt -identify_best_feats True -train_best True -unannotated Data/Splits/fullCorpus.seed-$seed_size.unannotated

Scripts/getFeatures_train_test.sh: line 15: crfsuite: command not found
Scripts/getFeatures_train_test.sh: line 19: crfsuite: command not found
Traceback (most recent call last):
File "Scripts/cross_validation.py", line 154, in
bestSet, bestScore = get_best_feature_set(number_of_folds, alwaysTrain, testable, POSSIBLE_FEATS, fullCorpus)
File "Scripts/cross_validation.py", line 123, in get_best_feature_set
score = n_way_cross_validation(feature_set, alwaysTrain, number_of_folds, testable, fullCorpus)
File "Scripts/cross_validation.py", line 99, in n_way_cross_validation
F, total = custom_eval_biased_recall_exclusive(test, predictions)
File "/Users/zhenshengli/Downloads/HER-master/her/Scripts/customEval.py", line 414, in custom_eval_biased_recall_exclusive
list_recall = custom_list_eval_exclusive(test, predictions)
File "/Users/zhenshengli/Downloads/HER-master/her/Scripts/customEval.py", line 118, in custom_list_eval_exclusive
predLine = predictions[index+predDiff]
IndexError: list index out of range

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.