Skip to content

Commit

Permalink
Fixing errors in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
saransh-mehta committed Jun 9, 2020
1 parent f535090 commit d3320cc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/source/data_transformations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Sample transform functions
^^^^^^^^^^^^^^^^^^^^^^^^^^
.. automodule:: utils.tranform_functions
:members: snips_intent_ner_to_tsv, bio_ner_to_tsv, snli_entailment_to_tsv,
fragment_detection_to_tsv, msmarco_query_type_to_tsv
create_fragment_detection_tsv, msmarco_query_type_to_tsv, qqp_query_similarity_to_tsv

Your own transform function
^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
3 changes: 2 additions & 1 deletion docs/source/shared_encoder.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,6 @@ Metrics
For evaluating the performance on dev and test sets during training, we provide the following standard metrics.

.. automodule:: utils.eval_metrics
:members:
:members: classification_accuracy, classification_f1_score, seqeval_f1_score,
seqeval_precision, seqeval_recall, snips_f1_score, snips_precision, snips_recall

4 changes: 1 addition & 3 deletions utils/eval_metrics.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
"""
File for creating metric functions
"""

from sklearn.metrics import accuracy_score, f1_score
from seqeval.metrics import f1_score as seq_f1
from seqeval.metrics import precision_score, recall_score
Expand Down

0 comments on commit d3320cc

Please sign in to comment.