Skip to content

Commit

Permalink
Small errors in docs (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
belov38 authored Apr 30, 2020
1 parent 0121390 commit 798fe30
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cdqa/pipeline/cdqa_sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ class QAPipeline(BaseEstimator):
--------
>>> from cdqa.pipeline import QAPipeline
>>> qa_pipeline = QAPipeline(reader='bert_qa_squad_vCPU-sklearn.joblib')
>>> qa_pipeline.fit_retriever(X=df)
>>> prediction = qa_pipeline.predict(X='When BNP Paribas was created?')
>>> qa_pipeline.fit_retriever(df=df)
>>> prediction = qa_pipeline.predict(query='When BNP Paribas was created?')
>>> from cdqa.pipeline import QAPipeline
>>> qa_pipeline = QAPipeline()
>>> qa_pipeline.fit_reader('train-v1.1.json')
>>> qa_pipeline.fit_retriever(X=df)
>>> qa_pipeline.fit_retriever(df=df)
>>> prediction = qa_pipeline.predict(X='When BNP Paribas was created?')
"""
Expand Down Expand Up @@ -140,7 +140,7 @@ def predict(
Parameters
----------
X: str
query: str
Sample (question) to perform a prediction on
n_predictions: int or None (default: None).
Expand Down

0 comments on commit 798fe30

Please sign in to comment.